home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / networking / terms / kermit / b / ik0ker.mss < prev    next >
Encoding:
Text File  |  1993-06-25  |  106.8 KB  |  2,529 lines

  1. @Part(I370KERMIT,root="kuser")
  2. @string(-ikvrsn="4.2.3")
  3. @Chapter<IBM 370 KERMIT>
  4. @Begin<Description,Leftmargin +15,Indent -15,spread 0>
  5. @i(Program:)@\John Chandler (Harvard/Smithsonian Center for
  6. Astrophysics); contributions from
  7. Va@ccd()e Kundak@ccd()i and
  8. Daphne Tzoar (Columbia U),
  9. Bob Shields (U. Maryland),
  10. Greg Small (UC Berkeley), Clark Frazier (Harvard
  11. Bus. Sch.), Bob Bolch and Steve Blankinship (Triangle), Ron Rusnak
  12. (U. Chicago), Roger Fajman and Dale Wright (NIH),
  13. Andr@eac() Pirard (U. Li@egr()ge), Pierre Goyette (McGill U.)
  14.  
  15. @i(Language:)@\IBM 370 Assembler
  16.  
  17. @i(Documentation:)@\John Chandler (CfA)
  18.  
  19. @i(Version:)@\@value(-ikvrsn)
  20.  
  21. @i(Date:)@\1993 May
  22. @end<Description>
  23.  
  24. @Index(IBM)
  25. @Index(TTY)@Index(Series/1)@Index(SNA)
  26. Kermit-370 is a family of programs
  27. implementing the KERMIT file transfer
  28. protocol for IBM 370-series mainframes (System/370, 303x, 43xx, 308x,
  29. 3090, @i<etc.>) under a variety of operating systems.
  30. Kermit-370 operates over asynchronous ASCII communication
  31. lines attached to a 3705-style or protocol enveloping 3708
  32. @Index(Front end)
  33. front end (@qq<TTY> or line-mode devices),
  34. to a Series/1 or 4994 running the
  35. Yale ASCII Terminal Communication System or
  36. the IBM 7171 ASCII Device Control Unit or a 9370 with ASCII subsystem
  37. (@qq<SERIES1> devices), to the IBM 3174 protocol converter at level B2.0
  38. @Index(3174)
  39. or higher (@qq<AEA> devices), or
  40. to front-ends with graphics pass-through mode, such as the
  41. Datastream/Leedata 8010 and PCI 1076
  42. (@qq<GRAPHICS> devices).  As of this writing, the pending
  43. implementation of full(er) 7171 compatibility in the program product
  44. SIM3278 has not been completed.  The non-line-mode devices are often
  45. called full-screen devices.
  46. For more details on front ends, see the section SET CONTROLLER.
  47.  
  48. The source is coded in IBM 370 assembly language and is
  49. compatible with the F, VS, and H assemblers.  The code is
  50. divided into sections, some generic and some
  51. specific to an individual operating system.  While the details of
  52. file-system and supervisor interaction vary widely among the systems
  53. available for IBM 370's, the basic features are essentially the same.
  54. This chapter describes the features common to all variants of
  55. Kermit-370, and a separate chapter will deal with the system-specific
  56. details for each variant.
  57.  
  58. IBM 370 systems have some peculiarities that users should be aware
  59. of.  First, these systems are essentially half-duplex;
  60. the communication line must "turn
  61. around" before any data can be sent.
  62. The @qq<TTY> devices are strictly half-duplex,
  63. and even the @qq<SERIES1>, @qq<GRAPHICS>, and @qq<AEA>
  64. devices, although they maintain full-duplex communication with the
  65. terminal, must transmit a block at a time to the mainframe.
  66. The fact that a packet has
  67. been received from the IBM system through a @qq<TTY> device
  68. is no guarantee that it is ready for
  69. a reply; generally, the true indicator of readiness is the
  70. line turnaround character (XON), which the operating system sends
  71. immediately before issuing a read request.  On some systems, however,
  72. it is possible for Kermit to do away with the system-supplied
  73. turnaround and schedule read requests immediately after the
  74. corresponding writes.
  75. It is up to the user to tell the other Kermit how it must conform to
  76. the requirements of the IBM mainframe.
  77.  
  78. @Index(Binary files)@Index(Translation)
  79. A second distinction is that disk files are encoded using
  80. the EBCDIC character set.  Consequently, there are three layers of
  81. character translation on packets exchanged on a @qq(TTY) device.  For
  82. an incoming packet, the outer layer is provided by the
  83. operating system, which translates all characters
  84. from ASCII to EBCDIC.  Kermit-370 must then translate
  85. the packets back to ASCII (the middle layer)
  86. in order to calculate and verify
  87. the checksum.  Data arriving through
  88. a @qq(SERIES1), @qq(GRAPHICS), or @qq(AEA) device are still in
  89. ASCII and therefore bypass the two outer layers.
  90. In any case, Kermit-370 translates text files finally into EBCDIC
  91. (the inner layer)
  92. before storing on disk.
  93. When Kermit-370 sends a file, the opposite translations occur.
  94. The middle-layer tables used by Kermit must be the inverses of the
  95. corresponding outer-layer ones used by the host operating system if
  96. file transfers are to work at all.  If necessary, the system programmer
  97. should add the appropriate SET TATOE/TETOA/TTABLE subcommands (@i<q.v.>)
  98. @Index(Initialization files)
  99. to the global INIT file.  Indeed,
  100. it is usually a good idea to set TTABLE ON in the global INIT
  101. file to force using different built-in sets of tables for the
  102. inner and middle layers whenever the system has @qq(TTY) devices.
  103. The standard 7-bit ASCII-to-EBCDIC translations can be
  104. found in the Appendix or the IBM System/370 Reference Card.
  105. See the section "Translation Tables" for more details.
  106.  
  107. Another distinction of IBM 370's is that they store and retrieve files
  108. as records rather than byte streams.  Records may be either
  109. fixed-length with some sort of padding (as needed) or varying-length
  110. with some sort of (generally hidden) delimiters.  Thus,
  111. Kermit-370 must assemble incoming
  112. data packets into records by stripping off carriage return-linefeed
  113. pairs (CRLF's) and padding with blanks or truncating as needed
  114. @Indexentry(key="Trailing blanks",entry="Trailing blanks.  @i<See> Blanks")
  115. @Indexentry(key="Stripping blanks",entry="Stripping blanks.  @i<See> Blanks")
  116. @Indexsecondary(primary="Blanks",secondary="trailing")
  117. @Indexsecondary(primary="Blanks",secondary="stripping")
  118. and must strip trailing blanks and append CRLF's to
  119. outgoing records.
  120. @Index(Records)@Index(CRLF)@Index(LRECL)@Index(RECFM)
  121. (See the SET FILE TYPE subcommand.)
  122. Further, disk files typically have the records combined into blocks
  123. for efficiency.  One consequence of this form of storage is that files
  124. @Index(File attributes)
  125. @Indexentry(key="Attributes",entry="Attributes.  @i<See> File attributes")
  126. have attributes describing the component records: maximum record
  127. length (LRECL), record format (RECFM), and sometimes block size
  128. @Index(BLKSIZE)
  129. (BLKSIZE).
  130.  
  131. As mentioned before, Kermit-370 is a family of programs.  At present,
  132. only the CMS, TSO, MUSIC, ROSCOE, and CICS variants are operational.
  133. Variants for DOS-4
  134. @Index(DOS-4)
  135. and MTS
  136. @Index(MTS)
  137. have at least reached the "drawing board,"
  138. but no others have even been started as of this writing.
  139. Volunteers are always
  140. welcome to port Kermit-370 to other operating systems or add new
  141. features to the existing family.  Anyone interested should first get
  142. in touch with the Center for Computing Activities at Columbia
  143. University to find out what projects of a similar nature are already
  144. pending (and thereby prevent unnecessary duplication of effort).
  145. There are supplemental files in the Kermit distribution with
  146. explanations of how to go about porting Kermit-370 and how to add
  147. support for new terminal controller types.  For details, refer
  148. to the installation
  149. guide for the variant of your choice.
  150.  
  151. @Section<Translation Tables>
  152.  
  153. Traditionally, IBM mainframe Kermits have translated
  154. 7-bit ASCII characters to 8-bit EBCDIC characters and ignored the
  155. "parity" bit in the process.  Similarly, the 8-bit EBCDIC characters
  156. have been mapped onto 7-bit ASCII, thereby producing many ambiguities
  157. in translating the ASCII files back to EBCDIC.  These ambiguities fall
  158. into two categories: EBCDIC characters not representable in ASCII
  159. have been rendered as ASCII nulls,
  160. and alternate EBCDIC representations of characters such
  161. as the ASCII backslash have been mapped together,
  162. but at least no two 7-bit ASCII characters
  163. are translated into the same EBCDIC character.
  164. The ambiguities
  165. were tolerable in environments where the traditionally non-printable
  166. characters never occurred in text files, but text processing has
  167. increasingly tended to include such characters for mathematical
  168. formulas or for languages other than English.  Ultimately, the
  169. translation tables must become completely invertible, lest information
  170. be lost in the transfer.  There has long been
  171. an option to replace parts of the translation tables via commands from
  172. the user (or imbedded in the INIT files), but such replacements
  173. were always supported locally and were, therefore, basically
  174. non-standard.
  175.  
  176. The concept of standard translations is currently in a state of flux
  177. because of the proliferation of 8-bit code pages and the countervailing
  178. efforts at standardization among groups such as the ISO and Kermit
  179. developers.
  180. In particular, Kermit-370 now supports a
  181. set of EBCDIC and "extended ASCII" code pages with built-in
  182. translation tables and automatic identification of the "ASCII"
  183. transfer character set via Attribute packets.
  184. This facility supports
  185. @Index(Code pages)@Index(Character sets)
  186. @seealso(primary="Code pages",other="Character sets")
  187. files stored using numerous IBM Country Extended Code Pages and permits
  188. transfers using character sets ASCII, CYRILLIC, GREEK, HEBREW,
  189. JAPAN-EUC, KATAKANA, LATIN1, LATIN2, LATIN3, and
  190. THAI.  See Table @ref(-ikchars) for a display of the allowed
  191. combinations of character sets.
  192. @Index<Kanji>@Index<Greek>@Index<Cyrillic>@Index<Hebrew>@Index<Katakana>
  193. See also file ISOK7.TXT in the Kermit distribution
  194. for a somewhat outdated description of the protocol extensions.
  195. Kermit-370 currently supports text files in the following
  196. languages:
  197. @Index(Languages)
  198. Afrikaans, Albanian, Bulgarian, Byelorussian, Catalan, Czech, Croatian,
  199. Danish, Dutch, English, Esperanto, Faeroese, Finnish, French, Gaelic,
  200. Galician, German, Greek, Hebrew, Hungarian, Icelandic, Italian, Japanese
  201. (Katakana and Kanji), Lao, Latin, Macedonian,
  202. Maltese, Norwegian, Polish, Portuguese,
  203. Quechua, Romanian, Russian, Serbian, Slovak,
  204. Slovene, Spanish, Swahili, Swedish, Thai, Turkish,
  205. Ukrainian, and Volap@uum()k.
  206. Visual representations of the characters sets may be found in the ISO
  207. register (for transfer) and in various IBM documents, such as S544-3156
  208. "About Type" (for files).
  209.  
  210. @begin<table,use format>
  211. @tabclear()
  212. @tabset(0.9in,1.5in,2.4in,3.0in,3.7in,4.3in,5.0in,5.4in,5.7in,6.0in,6.5in)
  213. @bar()
  214. @blankspace(1)
  215.          @\ @\    @u<Transfer character set>
  216. @blankspace(1)
  217. @=@u<Local>@=ASCII@=CYRILLIC@=GREEK@=HEBREW@=JAPAN@=KATAK.@=L1@=L2@=L3@=THAI@=
  218. @blankspace(1)
  219. @=CP037 @=*@=  @=  @=  @= @=  @=**@=  @=  @=  @=
  220. @=CP273 @= @=  @=  @=  @= @=  @=**@=  @=  @=  @=
  221. @=CP275 @= @=  @=  @=  @= @=  @=**@=  @=  @=  @=
  222. @=CP277 @= @=  @=  @=  @= @=  @=**@=  @=  @=  @=
  223. @=CP278 @= @=  @=  @=  @= @=  @=**@=  @=  @=  @=
  224. @=CP280 @= @=  @=  @=  @= @=  @=**@=  @=  @=  @=
  225. @=CP281 @= @=  @=  @=  @=*@=  @=**@=  @=  @=  @=
  226. @=CP282 @= @=  @=  @=  @= @=  @=**@=  @=  @=  @=
  227. @=CP284 @= @=  @=  @=  @= @=  @=**@=  @=  @=  @=
  228. @=CP285 @= @=  @=  @=  @= @=  @=**@=  @=  @=  @=
  229. @=CP290 @= @=  @=  @=  @=*@=**@=  @=  @=  @=  @=
  230. @=CP297 @= @=  @=  @=  @= @=  @=**@=  @=  @=  @=
  231. @=CP424 @= @=  @=  @=**@= @=  @=  @=  @=  @=  @=
  232. @=CP500 @=*@=  @=  @=  @=*@=  @=**@=  @=  @=  @=
  233. @=CP838 @= @=  @=  @=  @= @=  @=  @=  @=  @=**@=
  234. @=CP870 @= @=  @=  @=  @= @=  @=  @=**@=  @=  @=
  235. @=CP871 @= @=  @=  @=  @= @=  @=**@=  @=  @=  @=
  236. @=CP875 @= @=  @=**@=  @= @=  @=  @=  @=  @=  @=
  237. @=CP880 @=*@=**@=  @=  @= @=  @=  @=  @=  @=  @=
  238. @=CP905 @= @=  @=  @=  @= @=  @=  @=  @=**@=  @=
  239. @=CZECH @= @=  @=  @=  @= @=  @=  @=*@=   @=  @=
  240. @=DKOI  @=*@=***@= @=  @= @=  @=  @=  @=  @=  @=
  241. @=EBCDIC@=**@= @=  @=  @= @= @=***@=  @=  @=  @=
  242. @=H-EBCD@= @=  @=  @=  @=*@=*@=   @= @=   @=  @=
  243. @=KANJI @= @=  @=  @=  @=*@=  @=  @= @=   @=  @=
  244. @caption<Allowed character set combinations in Kermit-370>
  245. @tag<-ikchars>
  246. @begin<text,fill>
  247. @Index<Kanji>@Index<Greek>@Index<Cyrillic>@Index<Hebrew>@Index<Katakana>
  248. All allowed combinations are marked with asterisks, and the preferred
  249. combination in each row or column is the one with the most asterisks.
  250. Whenever a character set is specified, either directly or through an
  251. Attribute packet, the other category of character set is checked to see
  252. if it makes up an allowed combination.  If not, it is forced to the
  253. preferred character set.
  254. @end<text>
  255. @blankspace(1)
  256. @bar()
  257. @end<table>
  258.  
  259. @Index(Translation tables)
  260. As nearly as possible, the tables in
  261. Kermit-370 are
  262. invertible, but all of the character sets reserve many (typically 65)
  263. code points for control characters and leave them officially undefined
  264. and unprintable.  This applies both to IBM code pages and ISO standard
  265. 8-bit character sets.  Although 33 of the controls have widely accepted
  266. mappings, the others do not, and Kermit-370 currently uses those given
  267. in an appendix of IBM's VS/Fortran Reference Manual.  Needless to say,
  268. such translations are arbitrary and may be invalidated by future
  269. decisions at IBM or ISO.  Still, most of the translations are likely
  270. to be stable in the long run.  Table @ref(-ikatoe) shows the current
  271. translation from LATIN1 to EBCDIC, which is likely to be the most
  272. often used.  Other translations, including the reverse ones, may be
  273. displayed using the TDUMP subcommand of Kermit-370.
  274.  
  275. @begin<table,use format>
  276. @tabclear()@tabset(0.6in,0.9in,1.2in,1.5in,1.8in,2.1in,2.4in,2.7in,
  277. 3.0in,3.3in,3.6in,3.9in,4.2in,4.5in,4.8in,5.1in,5.4in)
  278. @bar()
  279. @blankspace(1)
  280. @=  @=-0@=-1@=-2@=-3@=-4@=-5@=-6@=-7@=-8@=-9@=-A@=-B@=-C@=-D@=-E@=-F@=
  281. @blankspace(1)
  282. @=0-@=00@=01@=02@=03@=37@=2D@=2E@=2F@=16@=05@=25@=0B@=0C@=0D@=0E@=0F@=
  283. @=1-@=10@=11@=12@=13@=3C@=3D@=32@=26@=18@=19@=3F@=27@=1C@=1D@=1E@=1F@=
  284. @=2-@=40@=5A@=7F@=7B@=5B@=6C@=50@=7D@=4D@=5D@=5C@=4E@=6B@=60@=4B@=61@=
  285. @=3-@=F0@=F1@=F2@=F3@=F4@=F5@=F6@=F7@=F8@=F9@=7A@=5E@=4C@=7E@=6E@=6F@=
  286. @=4-@=7C@=C1@=C2@=C3@=C4@=C5@=C6@=C7@=C8@=C9@=D1@=D2@=D3@=D4@=D5@=D6@=
  287. @=5-@=D7@=D8@=D9@=E2@=E3@=E4@=E5@=E6@=E7@=E8@=E9@=AD@=E0@=BD@=5F@=6D@=
  288. @=6-@=79@=81@=82@=83@=84@=85@=86@=87@=88@=89@=91@=92@=93@=94@=95@=96@=
  289. @=7-@=97@=98@=99@=A2@=A3@=A4@=A5@=A6@=A7@=A8@=A9@=C0@=4F@=D0@=A1@=07@=
  290. @=8-@=20@=21@=22@=23@=24@=15@=06@=17@=28@=29@=2A@=2B@=2C@=09@=0A@=1B@=
  291. @=9-@=30@=31@=1A@=33@=34@=35@=36@=08@=38@=39@=3A@=3B@=04@=14@=3E@=FF@=
  292. @=A-@=41@=AA@=4A@=B1@=9F@=B2@=6A@=B5@=BB@=B4@=9A@=8A@=B0@=CA@=AF@=BC@=
  293. @=B-@=90@=8F@=EA@=FA@=BE@=A0@=B6@=B3@=9D@=DA@=9B@=8B@=B7@=B8@=B9@=AB@=
  294. @=C-@=64@=65@=62@=66@=63@=67@=9E@=68@=74@=71@=72@=73@=78@=75@=76@=77@=
  295. @=D-@=AC@=69@=ED@=EE@=EB@=EF@=EC@=BF@=80@=FD@=FE@=FB@=FC@=BA@=AE@=59@=
  296. @=E-@=44@=45@=42@=46@=43@=47@=9C@=48@=54@=51@=52@=53@=58@=55@=56@=57@=
  297. @=F-@=8C@=49@=CD@=CE@=CB@=CF@=CC@=E1@=70@=DD@=DE@=DB@=DC@=8D@=8E@=DF@=
  298. @blankspace(1)
  299. @caption<EBCDIC (hexadecimal) code points for LATIN1>
  300. @tag<-ikatoe>
  301. @begin<text,fill>
  302. This table shows the values of the EBCDIC equivalents for the
  303. code points in the LATIN1 character set.  The values are arranged in
  304. LATIN1 collating sequence, and the rows and columns are labeled with
  305. the first and second digits, respectively, of the LATIN1 code points.
  306. For example, LATIN1 code 41 (hex) is upper-case "A", and
  307. the intersection of row "4-" and column "-1" has the value C1 (hex),
  308. which is the EBCDIC code for "A".  Rows "0-", "1-", "8-", and "9-" are
  309. officially undefined in ISO 8859-1 and so, in principle, could be
  310. changed at some future time, especially "8-" and "9-".  Note that
  311. this table uses a format close to that of the TDUMP subcommand and
  312. of the Kermit code itself, but
  313. character-set tables are often displayed with the rows and columns
  314. interchanged.
  315. @end<text>
  316. @blankspace(1)
  317. @bar()
  318. @end<table>
  319.  
  320. Besides converting files for transmission, Kermit-370 must also
  321. @Index(Translation) compensate for the EBCDIC/ASCII translation
  322. performed by some front ends and must, therefore, be able to apply the
  323. exact reverse translations on both input and output.  This is the
  324. "middle layer" of translation described earlier for @qq(TTY) devices.
  325. Consider the fate of a Left Square Bracket character in an inbound
  326. packet on a @qq(TTY) line.  It begins as ASCII code x'5B' (91
  327. decimal), but the front end translates it to EBCDIC before presenting
  328. it to Kermit-370.  In this example, suppose it becomes EBCDIC code
  329. x'4A' (74 decimal) instead of the standard x'AD' (173 decimal).  Then,
  330. Kermit must be primed with a @q(SET TETOA 74 91) so that, when
  331. reconstructing the original ASCII packet, the character becomes x'5B'
  332. again.  Otherwise, the packet checksum will appear invalid.  Kermit
  333. comes with a pair of default tables, but it may be necessary to
  334. customize them, as this example shows.  The following procedure will
  335. reveal any changes needed.  The procedure has two stages: the first is
  336. for any line-mode front end, and the second only for front ends capable
  337. of full 8-bit data transfer.  Note that, although the discussion
  338. refers to hexadecimal values, the Kermit-370 SET subcommands require
  339. decimal numeric arguments.  Also, note that this procedure assumes you
  340. will run Kermit with TTABLE set on; hence, the references to
  341. Kermit-370 tables are to TATOE and TETOA.  If you choose to define
  342. Kermit's file translation to match that of the front end, you should
  343. leave TTABLE set off and remove the T's from the SET subcommands
  344. described below.  This will also turn off the automatic switching of
  345. translation tables according to the Attribute packets received from
  346. the other Kermit.  Under CMS, you must issue a @q(CMS SET INPUT) and
  347. a @q(CMS SET OUTPUT) before starting this procedure.
  348.  
  349. @begin(enumerate,spread 0.5)
  350. Create a file containing all the non-control EBCDIC characters (hex
  351. codes 40-FF) and display the file on any available ASCII terminal
  352. hooked up to the line-mode front end in question.
  353.  
  354. If any printable ASCII character is missing from the display, Kermit
  355. cannot work through this front end (unless you modify the tables in
  356. the front end itself).
  357.  
  358. If any ASCII character appears twice, there is no cause for alarm.
  359.  
  360. If any ASCII character does not appear where it should, according to
  361. Table @ref(-iketoa), a SET TATOE must be added to the system
  362. INIT file.
  363. For example, if EBCDIC code 5F (Not Sign, according to the
  364. Appendix) appears as an ASCII Tilde (7E), but EBCDIC A1 (Tilde)
  365. does not, a SET TATOE 126 95 is required.  Warning: characters
  366. considered unprintable by the front end are likely to be filtered
  367. out entirely when you display the file; do not expect the display
  368. to line up just like Table @ref(-iketoa).
  369.  
  370. Create a file on the mainframe
  371. using an ASCII terminal for input, and enter all 95
  372. printable ASCII characters in collating
  373. sequence.  You can presumably save time by skipping the 52 upper-
  374. and lower-case letters and the 10 digits.
  375.  
  376. Display the file from the previous
  377. step in hexadecimal or other binary form.
  378.  
  379. If any duplicates appear among the 95 characters (or 33, if you have
  380. taken the short cut), Kermit
  381. cannot work through this front end (unless you modify the tables in
  382. the front end).
  383.  
  384. Compare the hexadecimal codes with rows 2-7 of Table @ref(-ikatoe).
  385. If a discrepancy appears, a SET TETOA must be added to the system INIT
  386. file.  For example, if ASCII Left Bracket (5B) appears as EBCDIC
  387. 4A, a SET TETOA 74 91 is needed.  At this point, the first stage is
  388. complete.
  389.  
  390. If 8-bit line-mode file transfer is desired, you must now verify the
  391. extended character set.
  392. Display the file of EBCDIC codes again, this time using a terminal with
  393. extended character set display, or capture the session with a micro
  394. Kermit and display the resulting file in hexadecimal.  If any
  395. code in the range A0-FE does not appear, the front end will
  396. not allow 8-bit Kermit data transfers.  Generate SET TATOE entries
  397. for the entire range, as needed,
  398. just as in the example given for 7-bit codes.
  399. If the front end's translation tables are documented, it may be easier
  400. to work from the manual, but you must be sure that you have tables for
  401. all of the translations that occur on the data path.
  402.  
  403. Create a file of the 95 extended ASCII codes A0-FE, if possible, by
  404. using a terminal capable of transmitting those codes or transmitting
  405. a pre-made file "raw".  If necessary, use the appropriate table(s) in
  406. the manual(s) instead.
  407.  
  408. Again, if any duplicates appear, this front end is incapable of 8-bit
  409. file transfers.  Otherwise, generate SET TETOA entries as before.
  410.  
  411. @end<enumerate>
  412.  
  413. @begin<table,use format>
  414. @tabclear()@tabset(0.6in,0.9in,1.2in,1.5in,1.8in,2.1in,2.4in,2.7in,
  415. 3.0in,3.3in,3.6in,3.9in,4.2in,4.5in,4.8in,5.1in,5.4in)
  416. @bar()
  417. @blankspace(1)
  418. @=  @=0@=1@=2@=3@=4@=5@=6@=7@=8@=9@=A@=B@=C@=D@=E@=F@=
  419. @blankspace(1)
  420. @=4-@= @= @= @= @= @= @= @= @= @= @= @=.@=<@=(@=+@=|@=
  421. @=5-@=&@= @= @= @= @= @= @= @= @= @=!@=$@=*@=)@=;@=^@=
  422. @=6-@=-@=/@= @= @= @= @= @= @= @= @= @=,@=%@=_@=>@=?@=
  423. @=7-@= @= @= @= @= @= @= @= @= @=@q(`)@=:@=#@=@@@=@q(')@==@="@=
  424. @=8-@= @=a@=b@=c@=d@=e@=f@=g@=h@=i@= @= @= @= @= @= @=
  425. @=9-@= @=j@=k@=l@=m@=n@=o@=p@=q@=r@= @= @= @= @= @= @=
  426. @=A-@= @=~@=s@=t@=u@=v@=w@=x@=y@=z@= @= @= @=[@= @= @=
  427. @=B-@= @= @= @= @= @= @= @= @= @= @= @= @= @=]@= @= @=
  428. @=C-@={@=A@=B@=C@=D@=E@=F@=G@=H@=I@= @= @= @= @= @= @=
  429. @=D-@=}@=J@=K@=L@=M@=N@=O@=P@=Q@=R@= @= @= @= @= @= @=
  430. @=E-@=\@= @=S@=T@=U@=V@=W@=X@=Y@=Z@= @= @= @= @= @= @=
  431. @=F-@=0@=1@=2@=3@=4@=5@=6@=7@=8@=9@= @= @= @= @= @= @=
  432. @blankspace(1)
  433. @caption<Character graphics for EBCDIC codes>
  434. @tag<-iketoa>
  435. @begin<text,fill>
  436. This table shows the representations of the EBCDIC codes
  437. arranged in
  438. EBCDIC collating sequence, row by row.
  439. Codes that do not correspond to
  440. ISO 646 characters (7-bit ASCII), have been left blank.  One
  441. special case is the EBCDIC code 5F, which represents a Not Sign in
  442. IBM's CP037, but which is traditionally mapped to the ASCII
  443. Circumflex, as shown here.  WARNING: this manual may have been printed
  444. on a device that maps characters differently.  Consult the Appendix to
  445. verify.
  446. @end<text>
  447. @blankspace(1)
  448. @bar()
  449. @end<table>
  450.  
  451. @Section<File Attributes>
  452.  
  453. Kermit-370 attempts to send and receive file attributes along with
  454. the files themselves.  Before Kermit
  455. receives a file, it compares the Length attribute (if available)
  456. with the amount of disk space available (if known) so that
  457. the file can be rejected if it will not fit.  In addition, the Type,
  458. Access, Encoding, Disposition, and Format attributes, if any, are
  459. interpreted in order to match the received file to the original as
  460. nearly as possible.  All
  461. other attributes (including Date) are simply ignored.
  462. For Type, Kermit recognizes text and binary
  463. specifications; for Access, it recognizes append, normal, and
  464. supersede; for Encoding, it recognizes ASCII, extended, and EBCDIC
  465. (which it treats as binary); for Disposition, it recognizes mail,
  466. print, and job; and for Format, it recognizes text, D-binary,
  467. V-binary, binary, and LRECL.  Any other values are rejected.
  468.  
  469. On sending a file, if the other Kermit is willing to accept
  470. Attribute packets, Kermit-370 sends the Type, Encoding, Format,
  471. Date, and Length attributes (unless some or all of them have
  472. been disabled -- see the SET ATTRIBUTE subcommand).
  473.  
  474. Unfortunately, the set of file attributes defined in the Kermit
  475. protocol is not well matched to the needs of IBM 370 file systems,
  476. so that much of the machinery for creating and interpreting of
  477. Attribute packets is useless.  For example, the "Format"
  478. attribute, which should logically specify the record format of the
  479. received file, gives only the format of the file in transmission
  480. and cannot distinguish between fixed-length and varying-length
  481. records for text files.  This limitation is partly due to the
  482. fact that other Kermits do not generally support the same attributes.
  483. In short, even if the protocol made it possible, some of the
  484. important attributes would never be specified anyway.  Nonetheless,
  485. efforts are being made to extend the protocol to be more
  486. comprehensive.
  487.  
  488. @Section<Program Operation>
  489.  
  490. Kermit-370 can be invoked directly or from a command procedure.
  491. In either case, it reads and executes subcommands sequentially until
  492. directed to quit, and then returns.
  493. A subcommand consists of one or more fields (words) separated by spaces
  494. or commas.
  495.  
  496. @Index(Initialization files)
  497. Upon startup, the program looks for two (optional)
  498. initialization files, one system-wide and a second specific to the
  499. user.  Both @i<filespecs>
  500. are, of course, system-dependent.
  501. The purpose of these files is to allow Kermit to be customized for a
  502. particular system and for a user's specific settings without changing
  503. the source code.
  504. The system-wide file, which is maintained by a systems programmer,
  505. should contain Kermit subcommands
  506. that all users would need to issue in order for
  507. Kermit to run on the system, such as subcommands to modify the
  508. ASCII/EBCDIC tables used by Kermit-370.  The
  509. user-specific file, if any,
  510. should contain subcommands that the user generally
  511. issues every time Kermit is run.  Kermit-370 executes any subcommands
  512. found in these files as though they were typed at the terminal.
  513. Here is a sample INIT file:
  514. @begin(example)
  515. * Asterisk in column one is a comment.
  516. set transfer character-set latin1
  517. set file collision rename
  518. set block 3
  519. @end(example)
  520.  
  521. During interactive execution,
  522. you may use the built-in help feature while typing
  523. Kermit-370 subcommands.  A question mark ("?") typed at almost any point
  524. in a subcommand, followed by a carriage return, produces a brief
  525. description of what is expected or possible at that point.  Moreover,
  526. mistyping a subcommand will generally produce a helpful error message or
  527. a list of possible options at the point of error.  Keywords in such
  528. lists are displayed with the minimum-length abbreviation in upper case
  529. and the remainder, if any, in lower case.  In entering Kermit
  530. subcommands, any keyword may be shortened to any substring that contains
  531. the minimum abbreviation.
  532.  
  533. Besides knowing the mechanics of entering Kermit subcommands and
  534. interpreting responses, the user must understand
  535. which subcommands are necessary.  The
  536. default values for Kermit-370 options have, in some cases, been
  537. constrained by a desire for continuity, so that some of the default
  538. behavior is distinctly "suboptimal."  An example of this is the
  539. traditional 80-byte default RECEIVE packet size, which generally gives
  540. much slower transmission than a size of 1000 or more.
  541. @Index(Initialization files)
  542. Such options are flagged in this chapter with a notation that they
  543. perhaps ought to be set in the INIT files.
  544. Note, however, that the interplay of Kermit protocol sometimes
  545. provides a performance upgrade with no special action required from
  546. the Kermit-370 user.  An example of this is the SEND packet-size,
  547. which is always under the control of the other Kermit.  Kermit-370
  548. always sends packets as long as the other Kermit allows, unless the
  549. frequency of transmission errors indicates that shorter packets
  550. would be more efficient (see the subcommand SET SPEED).
  551.  
  552. Kermit-370 also attempts to produce optimal results by adapting to
  553. the file attributes sent by the other Kermit along with
  554. the files, such as TYPE and LRECL.  Such attributes, when sent by
  555. the other Kermit, temporarily override the current settings in
  556. Kermit-370 during the reception of the associated file.  Potentially
  557. even more importantly, Kermit-370 automatically recognizes the
  558. character set used for the file transfer and chooses, if necessary,
  559. a compatible character set for file storage.  Table @ref(-ikchars)
  560. shows the currently supported list of character sets.  As with
  561. any automatic operation, Kermit's honoring of the transmitted
  562. attributes may need to be suppressed in part or altogether, and the
  563. SET ATTRIBUTE subcommand provides this capability.
  564.  
  565. Another attribute that Kermit-370 supports is file disposition,
  566. @Index(File disposition)@Index(Electronic mail)@Index(Mail)
  567. which allows files to be received and immediately retransmitted
  568. as electronic mail, sent to a printer, or submitted as a
  569. @Index(Printing files)@Index(Submitting jobs)@Index(Batch jobs)
  570. @seealso(primary="Submitting jobs",other="Batch jobs")
  571. @seealso(primary="Mail",other="Electronic mail")
  572. batch job.  These three options are highly site-specific and are
  573. implemented as a set of three host commands with
  574. similar calling sequences.  In each case, the command is invoked
  575. in two different ways in the process of processing the file.  It
  576. is called without any @i(filespec)
  577. or other options as soon as the corresponding attribute is
  578. recognized by Kermit-370.  If the command is not implemented or
  579. for some reason returns a non-zero completion code (such a code
  580. should be negative, if at all possible), Kermit-370
  581. rejects the file using the normal attribute exchange mechanism.
  582. Otherwise, the file is received as usual, and the command is
  583. invoked again at the end-of-file.  The second time, the command is
  584. given the name of the received file and the options received from
  585. the sending Kermit (such as the list of recipients for electronic
  586. mail).  The command is then responsible for disposing of the file (and
  587. deleting it, if desired).  If, for any reason, the file cannot be
  588. sent as required, the command should return a negative completion
  589. code (or non-zero, at any rate), and Kermit-370 will send back an
  590. error message to the sending Kermit.  The command itself should
  591. refrain from issuing any messages of its own or permitting commands that
  592. it invokes to issue messages.
  593. See the beginning of the chapter on the
  594. system-specific variant of Kermit-370 for the exact command
  595. syntax.  Some sample implementations of such commands may be
  596. available in the Kermit distribution -- refer to the system-specific
  597. installation guide for a list of samples.
  598.  
  599. @Section<Kermit-370 Subcommands>
  600.  
  601. The following is a summary of Kermit subcommands.  The starred
  602. subcommands can be issued as
  603. remote Kermit commands to Kermit-370 when it is in
  604. server mode.  System-specific subcommands are omitted from this list.
  605. @Begin(Format,spread 0)
  606. @tabclear()@tabset(1.25inches,1.4inches,1.65inches)
  607. @>BYE@\ @\  logs out other Kermit server.
  608. @>CWD@\*@\  establishes a new working directory.
  609. @>DIRECTORY@\ @\  displays all or part of the disk directory.
  610. @>ECHO@\ @\  a line back to the user.
  611. @>EXIT@\ @\  from Kermit-370.
  612. @>FINISH@\ @\  other Kermit server.
  613. @>GET@\ @\  file(s) from a Kermit server.
  614. @>GIVE@\*@\  creates a TAKE file snapshot of a table.
  615. @>HELP@\ @\  about Kermit-370.
  616. @>HOST@\*@\  executes a system command.
  617. @>KERMIT@\*@\  executes a Kermit subcommand.
  618. @>QUIT@\ @\  from Kermit-370.
  619. @>RECEIVE@\ @\  file(s) from other Kermit.
  620. @>SEND@\ @\  file(s) to other Kermit.
  621. @>SERVER@\ @\  mode of remote operation.
  622. @>SET@\*@\  various parameters.
  623. @>SHOW@\*@\  various parameters.
  624. @>SPACE@\*@\  displays disk storage allocation.
  625. @>STATUS@\*@\  inquiry.
  626. @>STOP@\ @\  easy escape from protocol mode.
  627. @>TAKE@\*@\  subcommands from file.
  628. @>TDUMP@\*@\  dumps the contents of a table.
  629. @>TYPE@\*@\  a file.
  630. @>XECHO@\ @\  echoes a line (transparently).
  631. @>XTYPE@\ @\  displays a file (transparently).
  632. @End(format)
  633.  
  634. @Index(Remote)@Index(Local)
  635. Although Kermit-370 is generally a remote Kermit, it has
  636. the capability of communicating with another Kermit in server mode.
  637. @Indexentry(key="Prefix",entry="Prefix.  @i<See> Command, Eighth-bit, Foreign")
  638. @Indexentry(key="Subcommand prefix",
  639.  entry="Subcommand prefix.  @i<See> Command prefix")
  640. In that situation, the
  641. @Index(Command prefix)
  642. subcommand prefixes REMOTE and LOCAL refer to the Kermit server and
  643. Kermit-370, respectively, even when Kermit-370 is, strictly speaking,
  644. the remote Kermit.  To help avoid confusion, this chapter will often
  645. @Index(Foreign)
  646. use the term "foreign" to apply to the Kermit at the other end from
  647. Kermit-370.  All the above subcommands may be preceded by the
  648. LOCAL prefix, but only certain ones are valid with REMOTE, including
  649. some not shown here.  See the description of the SERVER subcommand
  650. for details.  Any text replies Kermit-370 gets from the foreign
  651. Kermit server are added to a disk file (whose @i<filespec> is,
  652. of course, system-dependent).
  653. Such a transaction can be carried out, for example, under control of
  654. a TAKE file if Kermit-370 is not operating locally.
  655. If the local Kermit has a "magic" character sequence that switches it
  656. from terminal emulation to server mode, then an entire session
  657. could be controlled from the mainframe, possibly in response to a
  658. single command issued by a naive user.  For example,
  659. @Begin(example)
  660. .@ux(grab)
  661.  
  662.      @i(Kermit-370 is invoked and executes the following TAKE file)
  663.  
  664. ECHO Serve Me!        @i(the local Kermit switches to server mode)
  665. GET file.a            @i(the server uploads file.a)
  666. FINISH                @i(the server switches back to terminal mode)
  667. @End(example)
  668.  
  669. The remainder of this section describes
  670. subcommands with special meaning or use in Kermit-370, except
  671. the highly system-dependent ones.  For the latter, refer to the
  672. appropriate chapter.  Subcommands are
  673. listed in alphabetical order.
  674.  
  675. @Heading(The ECHO and XECHO Subcommands)
  676. @Index(ECHO)@Index(XECHO)
  677.  
  678. Syntax:@q< [X]ECHO @i(line)>
  679.  
  680. These subcommands type the @i(line) back at the user.
  681. The @i(line) may contain control characters or any desired
  682. text, including upper or lower case.  These
  683. subcommands may be used, for example, to test the ASCII/EBCDIC translate
  684. tables or to issue coded commands to the user's terminal.
  685. XECHO differs from ECHO primarily in that it sends the text as a
  686. @Index(Raw transmission)raw transmission according to the current
  687. CONTROLLER setting.  Thus, XECHO will, if necessary, break the text
  688. into pieces no larger than the current SEND PACKET-SIZE and will
  689. use transparent mode if CONTROLLER is
  690. @Index(Transparent mode)
  691. SERIES1, GRAPHICS or AEA.  It also offers its own
  692. brand of control-character quoting, using the @qq<^> character to
  693. indicate that only the five low-order bits of the ASCII codes are
  694. to be used.
  695. Thus, @qq(^a), @qq(^A), and @qq(^!) are all translated to SOH (CTRL-A),
  696. while @qq(^[) becomes ESC.  However, there must be one exception for
  697. @qq(^) itself: @qq(^>) and @qq(^~) are both translated to RS
  698. (CTRL-@q<^>), but @qq(^^) becomes just @qq(^).  XECHO also decodes
  699. 8th-bit quoting, just as in Kermit protocol, and this feature can be
  700. disabled by setting 8th-bit quoting off.  For example, if the 8th-bit
  701. quote character is @qq(&), entering the subcommand @qq(XECHO &A) will
  702. transmit a code x'C1', but the same subcommand with quoting off will
  703. transmit two bytes: x'2641'.
  704.  
  705. @Heading<The GET Subcommand>
  706.  
  707. @Index(GET)
  708. @Index(SEND)@Index(RECEIVE)
  709. Syntax:@q< GET [@i(foreign-filespec) [@i(filespec)]]>
  710.  
  711. The GET subcommand tells Kermit to request a file or file group
  712. from the other system, which must have a Kermit running in server mode.
  713. Provided the other Kermit complies, the effect is the same as if
  714. SEND @i(foreign-filespec) had been issued directly to the other Kermit
  715. and RECEIVE [@i(filespec)] to Kermit-370.
  716. If this subcommand is issued without any arguments,
  717. Kermit-370 will prompt the user for both foreign and native
  718. @i<filespecs> (and will insist on getting the former, but will do
  719. without the latter).  See the respective SEND and RECEIVE
  720. subcommands for a description of the each @i<filespec>.
  721.  
  722. @Heading(The GIVE Subcommand)
  723. @Index(GIVE)@Index(Translation tables)
  724.  
  725. Syntax:@q< GIVE @i(table-name) @i(filespec)>
  726.  
  727. This
  728. compares the named translation table with its current default values and
  729. saves the differences
  730. in the form of a TAKE file consisting of SET subcommands that would
  731. convert the default into the current arrangement.
  732. ATOE, ETOA, TATOE, and TETOA are the available
  733. tables.
  734. The details of the @i<filespec> are system-dependent, but those details
  735. will, in general, be the same as for the TAKE subcommand (@i<q.v.>).
  736. In the case of tables ATOE and ETOA, the current defaults are the
  737. values from the most recent character-set definition, if any, but the
  738. defaults for TATOE and TETOA always remain at the initial values.
  739. See the SET FILE CHARACTER-SET and SET TRANSFER CHARACTER-SET
  740. subcommands for more details.
  741.  
  742. @Heading(The HINTS Subcommand)
  743.  
  744. Syntax:@q< HINTS>
  745.  
  746. This subcommand produces a screenful of suggestions for Kermit operation,
  747. including warnings about any current settings that may be undesirable.
  748.  
  749. @Heading(The HOST Subcommand)
  750. @Index(Host commands)
  751.  
  752. Syntax:@q< HOST @i(text of command)>
  753.  
  754. This issues a command to the host operating system from Kermit-370.
  755. When a command returns a non-zero completion code, the
  756. code will be displayed.
  757. Generally, the name of the system (@i<e.g.>, CMS)
  758. is treated as a synonym for the HOST subcommand.
  759.  
  760. When Kermit-370 is in (non-local) server mode, you must avoid
  761. sending it any HOST commands that trigger full-screen terminal I/O,
  762. since the server-client interface does not provide any full-screen
  763. @Index(Full screen)
  764. terminal emulation, nor is Kermit-370 usually able to intercept such
  765. I/O in any case.
  766.  
  767. @Heading(The KERMIT Subcommand)
  768.  
  769. Syntax:@q< KERMIT @i(text of subcommand)>
  770.  
  771. This is provided for redundancy as the counterpart of the
  772. HOST subcommand.  Kermit-370 executes the specified text as a Kermit
  773. subcommand just as if the LOCAL prefix had been entered.  Note, however,
  774. that the specified text must not begin with a second KERMIT prefix.
  775. @Index(Command prefix)
  776.  
  777. @Heading<The RECEIVE Subcommand>
  778.  
  779. @Index(RECEIVE)
  780. Syntax:@q< RECEIVE [@i(filespec)]>
  781.  
  782. The RECEIVE subcommand tells Kermit-370 to accept a file or file group.
  783. The user must issue the corresponding
  784. SEND subcommand to the other Kermit.
  785. When files
  786. are received, their names are recorded in a transaction log in
  787. @Index(Transaction log)
  788. memory and may be viewed later
  789. via the TDUMP NAMES subcommand.  The log contains the names along
  790. with the file sizes and any relevant error messages.
  791. Another form of log may be provided through an accounting exit routine,
  792. which is called at the end of every RECEIVE session.  Such an accounting
  793. log may contain elapsed time and numbers of bytes sent, received, and
  794. transferred to/from disk.
  795. @Index(Incomplete files)
  796. If an error occurs during the file transfer, as much of the file as
  797. was received is saved on disk.  If, however, the sending of a file is
  798. cancelled by the user of the foreign system, Kermit-370 will discard
  799. whatever had arrived, unless FILE COLLISION is APPEND
  800. or INCOMPLETE is KEEP.
  801.  
  802. Kermit-370 has a context-dependent
  803. maximum record length, and received records
  804. longer than that will be folded or
  805. truncated to the proper length; when this happens, Kermit may or may
  806. not stop, depending on the FILE subparameter LONGLINE.  If truncation
  807. does occur, Kermit will later note the fact
  808. as an error (unless something more serious happens in the meantime).
  809. In addition, when a fixed record length is specified, received records
  810. are padded to the correct length.  The padding character is a blank
  811. for text files and a null for binary files.
  812. @Index(Binary files)
  813. Received binary (but not V-binary or D-binary) files are treated as
  814. byte streams and broken up into records all of the logical record
  815. length, @i<i.e.>, folded.
  816. For more details on the RECEIVE
  817. subcommand syntax and operation,
  818. see the chapter on the desired system-specific variant of Kermit-370
  819. under both RECEIVE and SET FILE.
  820. See also (in this chapter) the SET FILE LONGLINE subcommand for details
  821. on record truncation and folding.
  822. @Index(Truncation)@Index(Folding)
  823.  
  824. @Heading<The SEND Subcommand>
  825. @Index(SEND)@Index(Long packets)
  826.  
  827. Syntax:@q{ SEND [@i(filespec)[<@i(options)>] [@i(foreign-filespec)]][, ...]}
  828.  
  829. The SEND subcommand tells Kermit-370 to send a file or file group to the
  830. other (foreign)
  831. Kermit.  If no such file exists, Kermit-370 simply displays an
  832. error message and issues another prompt.
  833. @Index(Transaction log)
  834. Like RECEIVE, SEND keeps a transaction log of all files transferred
  835. in a group and calls the accounting exit routine
  836. at the end of the session.
  837. If this subcommand is issued without any arguments,
  838. Kermit-370 will prompt the user for both native and foreign
  839. @i<filespec>s (and will insist on getting the former, but will do
  840. without the latter).  Either with or without prompting, SEND allows
  841. specifying a list of up to 13 files (or file groups)
  842. separated by commas.
  843. (By ending the command line or subsequent response with a comma, the
  844. user ensures further prompting.)
  845. In this syntax, the @i<options> enclosed in angle brackets may be
  846. regarded as part of the native @i<filespec>.  There must be no
  847. intervening blanks.  At present, the only supported option is a
  848. range of line numbers within the file to be sent.  The range
  849. takes the form [@i(n)][-[@i(m)]], where @i(n) is the number of the
  850. first line to send (counting from 1), and @i(m) is the last.  Omitting
  851. either number implies the corresponding limit is the physical
  852. beginning or end of the file.
  853. This same option syntax may be used in some
  854. commands issued to the foreign Kermit, namely, those involving
  855. @i<filespec>s in 370 form.  In particular,
  856. GET and REMOTE TYPE can use this syntax.
  857. @Index(Type)
  858. Note that a trailing @qq(>) is used by some other Kermits, such as
  859. MS-Kermit, to indicate redirection of the output from REMOTE
  860. commands to disk.  In order to transmit the @qq(>) and also prevent the
  861. redirection to disk, it would be necessary to add an explicit
  862. redirection to the terminal, as in
  863. @example(REM TYPE @i<filespec><@i<n>-@i<m>> > CON)
  864.  
  865. @Index(Cancelling a file transfer)
  866. Although file transfers cannot be cancelled from the 370 side,
  867. Kermit-370 is capable of responding to
  868. "cancel file" or "cancel batch"
  869. signals from the local Kermit;  these are typically entered by typing
  870. CTRL-X or CTRL-Z, respectively.
  871.  
  872. When Kermit-370 sends files using long packets (longer than 94), the
  873. throughput is especially sensitive to the level of noise on the line
  874. because retries are so time-consuming.  Therefore, Kermit-370
  875. imposes an
  876. extra, heuristic size limit on packets when retries have been found
  877. necessary.  When that is the case, after every 15 packets, Kermit
  878. computes the packet size
  879. @Index(Packet size)@Index(Optimum packet size)
  880. for maximum throughput assuming that the
  881. transmission errors were due to sparse, Poisson-distributed noise
  882. bursts.  The result of this calculation is then used as another limit on
  883. the size of outgoing packets besides the one specified by the other
  884. Kermit.  If no retries are required, then Kermit-370 assumes the line to
  885. be noiseless and sends packets of the maximum length the
  886. other Kermit allows.  The algorithm is explained in @i(Kermit News)
  887. V. 3 #1.
  888. For more details on the SEND
  889. subcommand syntax and operation,
  890. see the chapter on the desired system-specific variant of Kermit-370.
  891.  
  892. @Heading<The SERVER Subcommand>
  893. @Index(SERVER)
  894.  
  895. Kermit-370 is capable of acting as a server.  In server mode,
  896. Kermit-370 can send and receive files, execute host commands,
  897. execute a restricted set of Kermit subcommands, and perform a variety of
  898. generic Kermit functions.  The following list shows the typical local
  899. Kermit commands along with the server functions they elicit.
  900. When Kermit-370 is talking to another Kermit running in server mode,
  901. these same subcommands may be used in the other direction.
  902. @begin(format,spread 0)
  903. @tabclear()@tabset(2.0inches)
  904. BYE@\log out the Kermit server.
  905. FINISH@\server mode.
  906. GET@\a file or files from the server.
  907. REMOTE
  908.   COPY@\a file or files.
  909.   CWD@\set new working directory.
  910.   DELETE@\a file or files.
  911.   DIRECTORY@\display file attributes.
  912.   HELP@\display a command summary, such as this.
  913.   HOST@\execute a system command.
  914.   KERMIT@\execute a Kermit-370 subcommand.
  915.   PRINT@\send a file to be printed by the server.
  916.   RENAME@\a file or files.
  917.   SPACE@\display disk space.
  918.   TYPE@\a file.
  919. SEND@\a file or files to the server.
  920. @end(format)
  921.  
  922. If your local Kermit does not support the REMOTE KERMIT command,
  923. you may need to issue SET
  924. subcommands to select various options before typing the SERVER
  925. subcommand.  Once in server mode,
  926. Kermit-370 will await all further instructions from the client Kermit
  927. on the other end of the connection until a FINISH or BYE command is
  928. given.
  929.  
  930. Command execution in server mode is different in some respects
  931. from normal operation.  First of all, some Kermit subcommands
  932. are not allowed (see the list at the beginning of this section).
  933. Moreover, command errors
  934. always terminate any active TAKE file.
  935. Also, all commands will be run in the
  936. special environment that Kermit sets up during protocol transfers.
  937. Among other things, Kermit intercepts all
  938. terminal I/O (if possible) in this environment in order to
  939. transmit the data to the local
  940. Kermit as text packets.
  941.  
  942. Note that some operations can be requested by several different
  943. commands.  If for example, the IBM 370 system has a command @qq(PRT) for
  944. displaying a file, a user interacting with a Kermit-370 server
  945. can choose to display a file by issuing any
  946. @Index(Type)
  947. of the commands: REMOTE TYPE, REMOTE HOST PRT, REMOTE KERMIT TYPE,
  948. REMOTE KERMIT HOST PRT, or (if SYSCMD has been set ON) REMOTE KERMIT
  949. PRT.  The first form simply transfers the
  950. requested file as text, but the others invoke the @qq(PRT) command
  951. with any specified options, intercept the terminal output,
  952. and return the results to the local Kermit.
  953. The first form is also distinguished by the fact that the line range
  954. may be specified in the same manner as in the SEND subcommand.  The
  955. syntax of the others is system-dependent.
  956.  
  957. @Heading<The SET Subcommand>
  958. @Index(SET)
  959.  
  960. Syntax:@q< SET @i(parameter) [@i(value)]>
  961.  
  962. The SET subcommand establishes or modifies various parameters
  963. controlling file transfers.  The values can, in turn, be
  964. examined with the SHOW subcommand.
  965. Some parameters have two levels.  In particular, there are two
  966. matching lists of SEND and RECEIVE sub-parameters corresponding to
  967. the values exchanged by Kermits in the Send-Init/ACK sequence.
  968. For each of these SEND/RECEIVE pairs one element is encoded in
  969. outgoing parameter packets, and the other is decoded from incoming ones.
  970. Setting the latter by hand may be needed to establish contact and also
  971. has the effect of redefining the default value for decoding from
  972. subsequent parameter packets.
  973. Generally, the distinction between SEND and RECEIVE parameters is
  974. unambiguous, the only exception being TIMEOUT (@i<q.v.>).
  975. The following SET
  976. subcommands are available in Kermit-370:
  977. @Begin(Format,spread 0)
  978. @tabclear()@tabset(2.0inches)
  979. ATOE@\Modify the Kermit-370 ASCII-to-EBCDIC table.
  980. ATTRIBUTE@\Determine A-packet generation.
  981. BLOCK-CHECK@\Level of error checking for file transfer.
  982. CONTROLLER@\Indicate type of terminal connection.
  983. DEBUG@\Log packet traffic during file transfer.
  984. DELAY@\Length of pause before a SEND subcommand.
  985. EOF@\Text file truncation at CTRL-Z.
  986. ETOA@\Modify the Kermit-370 EBCDIC-to-ASCII table.
  987. FILE@\Attributes for incoming or outgoing files...
  988.   CHARACTER-SET@\... for 370 storage.
  989.   COLLISION@\... treatment for duplicate names.
  990.   LONGLINE@\... treatment of too-long records.
  991.   OVERWRITE@\... treatment of attributes.
  992.   TYPE@\... text or binary.
  993.   @i(other)@\... system-specific attributes.
  994. FOREIGN@\Strings added to outgoing filespec...
  995.   PREFIX
  996.   SUFFIX
  997. INCOMPLETE@\Determine the action on an aborted file transfer.
  998. LINE@\Specify alternate communication line.
  999. MARGIN@\for sending files...
  1000.   LEFT
  1001.   RIGHT
  1002. PROMPT@\For Kermit-370 subcommands.
  1003. RETRY@\Maximum retry count...
  1004.   INIT@\... for initial packet exchange.
  1005.   PACKET@\... per packet for ongoing transfer.
  1006. SERVER-TIMEOUT@\Spacing between server NAK's.
  1007. SPEED@\Line speed for packet-size calculations.
  1008. SYSCMD@\Try apparently invalid Kermit subcommands on host system.
  1009. TABS-EXPAND@\Determine tab-to-space conversion on reception.
  1010. TAKE
  1011.   ECHO@\Echo subcommands read from TAKE files.
  1012.   ERROR-ACTION@\Exit from TAKE file on command error.
  1013. TEST@\Facilitate testing of Kermit.
  1014. TATOE@\Modify the Kermit-370 ASCII-to-EBCDIC table.
  1015. TETOA@\Modify the Kermit-370 EBCDIC-to-ASCII table.
  1016. TRANSFER@\Options...
  1017.   CHARACTER-SET@\... for transmission.
  1018. TTABLE@\Determine which tables undo the terminal translation.
  1019. 8-BIT-QUOTE@\Determine state of 8th-bit prefixing.
  1020. SEND or RECEIVE
  1021.   END-OF-LINE@\Packet terminator.
  1022.   PACKET-SIZE@\Maximum packet size.
  1023.   PAD-CHAR@\Character to insert before each packet.
  1024.   PADDING@\Number of pad characters to insert.
  1025.   PARITY@\Indicate if 7-bit or 8-bit data.
  1026.   QUOTE@\Use to quote control characters in packets.
  1027.   START-OF-PACKET@\Packet beginning marker.
  1028.   TIMEOUT@\Time limit for response.
  1029. @End(format)
  1030.  
  1031. @Subheading<SET ATOE etc.>
  1032. @Index(ASCII-to-EBCDIC)@Index(EBCDIC-to-ASCII)
  1033.  
  1034. Syntax:@q< SET @i(table) [@i(num1) @i(num2)]>
  1035.  
  1036. This modifies one of the ASCII/EBCDIC translation tables
  1037. used by Kermit-370 (for example,
  1038. to conform to your system).  The valid table names are ATOE, ETOA,
  1039. TATOE, and TETOA.  The arguments are, respectively,
  1040. the offset within the named table and
  1041. the new value for that offset.  If the arguments are omitted, the table
  1042. is restored to its initial arrangement.
  1043. Both @i(num1) and @i(num2) should be in the range 0-255 (decimal).
  1044. For example, in ATOE or TATOE, the offset is the
  1045. ASCII character code, and the new value is the new EBCDIC result code.
  1046. Initially, ATOE and TATOE each
  1047. contain two identical copies of the 7-bit ASCII character table.
  1048. Helpful hint: if you have files that make use of extended (8-bit) ASCII
  1049. codes and wish to upload them via Kermit-370, be sure to define unique
  1050. EBCDIC equivalents of all the needed 8-bit ASCII codes or else treat
  1051. such files as binary data.
  1052. @Index(Extended ASCII)
  1053. Any time you use the SET ATOE or SET ETOA subcommands, that has a
  1054. side effect equivalent to SET ATTRIBUTE ENCODING OFF (@i<q.v.>).
  1055. If the extended ASCII character set is one of those supported for file
  1056. transfer in Kermit-370, you need only issue a SET TRANSFER
  1057. CHARACTER-SET (@i<q.v.>).
  1058.  
  1059. Note: the meaning of the tables depends on the TTABLE setting -- if
  1060. TTABLE is OFF, the TATOE and TETOA tables are not used.
  1061.  
  1062. @Subheading<SET ATTRIBUTE>
  1063. @Index(File attributes)
  1064.  
  1065. Syntax:@q< SET ATTRIBUTE [@i(attribute)] ON @i(or) OFF>
  1066.  
  1067. The individual @i(attribute)s are
  1068. LENGTH, TYPE, DATE, CREATOR, ACCOUNT, AREA, PASSWORD, BLOCKSIZE, ACCESS,
  1069. ENCODING, DISPOSITION, PROTECT, ORIGIN, FORMAT, SYS-INFO, and
  1070. BYTE-LENGTH.  Kermit-370 distinguishes between the two forms of this
  1071. subcommand by counting "words".  In order to see the list of supported
  1072. attributes, you must enter @qq(SET ATTR ? ?); if you enter just
  1073. @qq(SET ATTR ?), Kermit will list just the alternatives ON and OFF.
  1074.  
  1075. @Begin(Description,leftmargin +8,indent -8,spread 0.5)
  1076. ON@\The
  1077. specified attribute is to be processed, or
  1078. attribute packets are generated for all outgoing files, provided
  1079. the other Kermit indicates the ability to accept them.
  1080. (Default).
  1081.  
  1082. OFF@\The specified attribute
  1083. is to be ignored and not generated, or
  1084. attribute packets are never generated.
  1085. @End(Description)
  1086.  
  1087. @Subheading<SET BLOCK-CHECK>
  1088. @Index(Block check)
  1089.  
  1090. Syntax:@q< SET BLOCK-CHECK @i(number)>
  1091.  
  1092. This determines the type of block check used during file transfer,
  1093. provided the other Kermit agrees.  Valid
  1094. options for @i(number) are: 1 (for a one-character checksum), 2 (for
  1095. a two-character checksum) and 3 (for a three-character CRC).  This is
  1096. one of only two
  1097. Send-Init parameters that cannot be SET separately for SEND
  1098. and RECEIVE.
  1099.  
  1100. @Subheading<SET CONTROLLER>
  1101. @Index(Series/1)@Index(TTY)@Index(SNA)@Index(Controller)
  1102.  
  1103. Syntax:@q< SET CONTROLLER @i(type)>
  1104.  
  1105. The @i(type) may be TTY, SERIES1, GRAPHICS, AEA, FULLSCREEN, VTAMTTY, or NONE.
  1106. Kermit-370 automatically determines whether you are connected via a
  1107. Series/1 (or similar) emulation controller
  1108. or a TTY line.  In some circumstances, such as when the connection is
  1109. through a non-graphics-capable 3174 port,
  1110. @Index(3174)
  1111. Kermit will set CONTROLLER to NONE, which has the effect
  1112. of disabling file transfers.  This subcommand is provided, though, to
  1113. allow the automatic choice to be superseded, and because Kermit may
  1114. not be able to distinguish between Series/1-type and other
  1115. 3270-emulation controllers.  In particular, there is no way to
  1116. distinguish between FULLSCREEN and GRAPHICS from within Kermit.  When
  1117. CONTROLLER is set to SERIES1, GRAPHICS, or AEA, Kermit disables the
  1118. 3270 protocol conversion function by putting the terminal controller
  1119. into "transparent mode", which allows Kermit packets to pass through
  1120. intact.  Note: an incorrect CONTROLLER setting may lock up or wipe out
  1121. your session when you try to transfer files.
  1122.  
  1123. Kermit operation is possible through an IBM
  1124. @Index(3708)
  1125. 3708 front end, but only in a rather specific
  1126. configuration.  See the installation guide for your variant of
  1127. Kermit-370 for the details of that and other hardware-related
  1128. restrictions and configurations.
  1129.  
  1130. @Subheading<SET DEBUG>
  1131. @Index(Debugging)
  1132.  
  1133. Syntax:@q< SET DEBUG OFF @i(or) ON [RAW] [I/O] [SAVE] [LONG]>
  1134.  
  1135. Note: any combination, in any order, of RAW, I/O, and SAVE may follow
  1136. or replace ON.  Each of the three implies ON.
  1137. @Begin(Description,leftmargin +8,indent -8,spread 0.5)
  1138. ON@\Keep a journal of all packets sent and received in a log file on
  1139. disk.  If the file already exists, it is erased and overwritten.  The
  1140. @i<filespec> of the log is, of course, system-dependent.  All packets
  1141. are logged in EBCDIC for legibility, even when CONTROLLER is set to
  1142. SERIES1, GRAPHICS, or AEA.
  1143.  
  1144. RAW@\The same as ON, but packets are logged in the form that is passed
  1145. to or from
  1146. the operating system, @i<i.e.>, EBCDIC for TTY or VTAMTTY
  1147. terminals, and ASCII for
  1148. SERIES1, GRAPHICS, and AEA terminals.
  1149.  
  1150. I/O@\The same as ON, but
  1151. the log includes
  1152. additional transmission status information, such as the AID returned
  1153. by a full-screen device.  See below for a summary of the log formats.
  1154.  
  1155. SAVE@\The same as ON, but the log file is closed after each entry is
  1156. added, so that, if the session is abnormally terminated, the log file
  1157. will be complete and readable.
  1158.  
  1159. LONG@\The same as I/O, but the additional information is not
  1160. truncated to 36 bytes.
  1161.  
  1162. OFF@\Stop logging packets and close the the log file.
  1163. (Default.)
  1164. @End(Description)
  1165.  
  1166. Often, problems with Kermit file transfers or server-mode operations can
  1167. be diagnosed by setting DEBUG on in one or both Kermits, regardless of
  1168. where the problems actually lie.  For Kermit-370, the maximum amount of
  1169. information can generally be obtained by setting DEBUG to I/O or LONG,
  1170. but the
  1171. format of the log depends somewhat on which variant of Kermit-370 is
  1172. involved.  Before examining the log, you should set DEBUG OFF either
  1173. explicitly or by exiting from Kermit-370.
  1174.  
  1175. @Index(Dumping storage)
  1176. There is an optional feature for logging dumps of storage blocks
  1177. at selected points in the execution.  By default, this feature is
  1178. disabled (at assembly time) by having the variable symbol &KTRACE set
  1179. to NO and also by virtue of the fact that no calls to the dump routine
  1180. are present in the distribution code.
  1181. Further, the dumps are suppressed unless both DEBUG and TEST
  1182. (@i<q.v.>) are set on.  To select when and what blocks to dump, it is
  1183. necessary to insert calls to KHDMP at appropriate points in the source
  1184. before assembling.  Each such call generates a dump each time it is
  1185. executed, provided that DEBUG and TEST are set, and the contents of all
  1186. registers are preserved.  The
  1187. call specifies the starting address, the length, and a short title for
  1188. the block.  Only eight characters of the title will be used.  Some
  1189. examples:
  1190.  
  1191. @Begin(Description,spread 0.5,leftmargin +26, indent -14)
  1192. @q<KHDMP ATOE+128,128,'ATOEhigh'>@\Dump the 2nd half of the ATOE table.
  1193.  
  1194. @q<KHDMP KHDSAV,20,'R14 - R2'>@\Dump registers 14-2.
  1195.  
  1196. @q<KHDMP 32(,13),40,'**R3-R12'>@\Dump registers 3-12.
  1197.  
  1198. @q<KHDMP (3),(0),'**QBLOCK'>@\Dump block addressed by R3 with length
  1199. specified in R0.
  1200. @End(Description)
  1201.  
  1202. @Index(Tracing execution)
  1203. There is another debugging facility that is enabled by the variable
  1204. symbol &KTRACE along with the dump option, namely, an execution
  1205. trace.  There is a circular buffer of trace elements in Kermit's
  1206. working storage, and a new element is written each time a Kermit
  1207. subroutine is called or returns.  The elements contain the subroutine
  1208. name plus (on entry) a sequence number and the contents of registers
  1209. 0 and 1 or (on exit) the character @qq(>) and the contents of registers
  1210. 15 and 1.  There is also a mechanism for tracing extra events by
  1211. inserting KTRACE calls into the source.  For example,
  1212.  
  1213. @Begin(Description,spread 0.5,leftmargin +26, indent -14)
  1214. @q<KTRACE 0(5),REGS=5>@\Trace eight bytes pointed to by R5 and R5
  1215. itself.
  1216.  
  1217. @q<KTRACE FOOBAR>@\Trace eight bytes at label FOOBAR.
  1218.  
  1219. @q<KTRACE 'Found it',REGS=(1,7)>@\Trace 'Found it', R1, and R7.
  1220. @End(Description)
  1221.  
  1222. The trace table is simply updated in storage, eating its own tail.  It
  1223. can be found in a memory dump by locating the "eye-catcher" that says
  1224. @qq(KTRACE:), which precedes the start, current, and end pointers for
  1225. the table.  Usually, there is no access to the table except in ABEND
  1226. dumps and the like.  It would not be very useful to have a KHDMP call
  1227. for the table, since each line dumped to the debug log
  1228. would cause at least four
  1229. other lines in the table to be overwritten by the ongoing trace,
  1230. thereby losing most of the desired information.
  1231.  
  1232. Each line in the debug log begins with a one-letter tag and a colon and
  1233. contains information according to the tag.  The following tags are
  1234. defined.
  1235.  
  1236. @Begin(Description,leftmargin +4,indent -4,spread 0.5)
  1237. S:@\The text of a packet sent.  Normally, it will be encoded in EBCDIC
  1238. for convenience, but if DEBUG is set to RAW, the packet will appear
  1239. exactly as passed to or from the system, i.e., in EBCDIC for TTY or
  1240. VTAMTTY lines and in ASCII for full-screen lines.
  1241.  
  1242. R:@\The text of a packet received.  The same encoding applies.
  1243.  
  1244. A:@\The AID and buffer address returned by a full-screen device along
  1245. with a read operation (three characters in all).  The values should
  1246. all be printable EBCDIC.  This obsolete tag was
  1247. used by TSO and MUSIC Kermits
  1248. and appeared only when DEBUG was set to I/O.
  1249.  
  1250. *:@\Data dumped by the optional KHDMP routine.
  1251. @End(Description)
  1252.  
  1253. The following tags appear only when
  1254. DEBUG is set to I/O or LONG.  All values are in hexadecimal.  The
  1255. meanings differ slightly according to the operating system.  For CMS,
  1256. @Index(CMS)the I/O parameter list is a channel command;
  1257. for TSO or ROSCOE,
  1258. @Index(TSO)@Index(ROSCOE)
  1259. the SVC 93
  1260. (TPUT/TGET)
  1261. @Index(TPUT)@Index(TGET)
  1262. parameters; for CICS, an intermediate string similar to
  1263. channel commands.  Similarly, the status data consist of the stored
  1264. CSW@Index(CSW) plus an attention interrupt indicator for CMS, but the
  1265. return code from the I/O operation for TSO, ROSCOE, CICS, and MUSIC.
  1266. @Index(CICS)@Index(MUSIC)
  1267.  
  1268. @Begin(Description,leftmargin +4,indent -4,spread 0.5)
  1269. a:@\Channel and device status after an unexpected attention interrupt.
  1270.  
  1271. b:@\I/O parameter list for recovering from a CP break-in on screen.
  1272.  
  1273. c:@\I/O parameter list for resuming normal screen operation.
  1274.  
  1275. d:@\Data transferred on the previously indicated I/O operation.
  1276.  
  1277. e:@\Status data after an I/O command has completed with an error.
  1278.  
  1279. g:@\I/O parameter list for reading from the screen buffer.
  1280.  
  1281. i:@\Status data after an I/O command has completed normally.
  1282.  
  1283. m:@\I/O parameter list for displaying text on the screen.
  1284.  
  1285. o:@\I/O parameter list for initializing the screen for transfers.
  1286.  
  1287. r:@\I/O parameter list for reading from the terminal.
  1288.  
  1289. w:@\I/O parameter list for a transparent write.
  1290.  
  1291. ?:@\I/O parameter list for some other operation, such as clearing the
  1292. screen.
  1293. @End(Description)
  1294.  
  1295. @Subheading<SET DELAY>
  1296. @Index(SEND delay)
  1297.  
  1298. Syntax:@q< SET DELAY @i(number)>
  1299.  
  1300. Normally, Kermit-370 waits 10 seconds after the SEND subcommand before
  1301. starting the transfer, but this delay may be set to any non-negative
  1302. value.  Two DELAY values have special meaning.  When DELAY is 1, the
  1303. usual two-line greeting displayed during protocol mode is
  1304. abbreviated to a short message (the default
  1305. Kermit prompt with three dots...),
  1306. and when DELAY is 0, the greeting is suppressed entirely, along with
  1307. the extra one-second pause for subcommands like
  1308. RECEIVE, SERVER, REMOTE, and the like.
  1309.  
  1310. @Subheading<SET EOF>
  1311. @Index(File truncation)@Index(End of file)
  1312. @seealso(primary="Truncation",other="File truncation")
  1313.  
  1314. Syntax:@q< SET EOF ON @i(or) OFF>
  1315. @Begin(Description,leftmargin +8,indent -8,spread 0.5)
  1316. ON@\Scan each incoming TEXT file for the first
  1317. occurrence of CTRL-Z and ignore the remainder of the file (but
  1318. continue decoding up to the actual end of the file).  BINARY files
  1319. are not affected.
  1320.  
  1321. OFF@\Accept incoming files in their entirety.
  1322. (Default.)
  1323. @End(Description)
  1324.  
  1325. @Subheading<SET FILE CHARACTER-SET>
  1326. @Index(Character sets)
  1327.  
  1328. Syntax:@q< SET FILE CHARACTER-SET @i(name)>
  1329.  
  1330. Specifies the name of the character set used in files stored on disk.
  1331. This setting may be superseded by an Attribute packet of an incoming
  1332. file.  Currently, the available names are CP037, CP273, CP275, CP277,
  1333. CP278, CP280, CP281, CP282, CP284, CP285, CP290, CP297, CP424, CP500,
  1334. CP838, CP870, CP871, CP875, CP880, CP905, CZECH, DKOI, EBCDIC,
  1335. H-EBCDIK-DASH, and KANJI (or FUJITSU-KANJI, HITACHI-KANJI, or
  1336. IBM-KANJI).  The names beginning with CP refer to IBM code pages,
  1337. @Index<Kanji>@Index<Cyrillic>
  1338. while DKOI is the Cyrillic standard GOST 19768-87 used in the USSR,
  1339. CZECH is a character set sometimes used in Czechoslovakia, and EBCDIC
  1340. (the default) is the traditional @i<de facto> standard EBCDIC
  1341. character set.  A character set other than the default may be required
  1342. by local conventions and, if so, should be specified in the system or
  1343. user INIT files.  See Table @ref<-ikchars> for the allowed
  1344. combinations of transfer and file character sets.  Explicitly setting
  1345. this option has a side effect equivalent to issuing SET ATTRIBUTE
  1346. ENCODING ON (@i<q.v.>).
  1347.  
  1348. The name KANJI is actually just an alias for the local preferred
  1349. proprietary Kanji code (Fujitsu, Hitachi, or IBM).  The various Kanji
  1350. character sets have two-byte codes (DBCS), but are used with one-byte
  1351. code pages (SBCS) as well.  It is normally necessary to issue two SET
  1352. FILE CHARACTER-SET SUBCOMMANDS in order to set up for a DBCS: first,
  1353. selecting a compatible SBCS, and, second, selecting the DBCS itself.
  1354. If the current SBCS is incompatible with the selected DBCS, a default
  1355. will be chosen.  This default, along with the choice of the particular
  1356. proprietary character set associated with the alias KANJI, is
  1357. chosen by the installer.
  1358.  
  1359. @Subheading<SET FILE COLLISION>
  1360. @Index(Filename collision)
  1361. @Indexentry(key="Collision",entry="Collision.  @i<See> Filename collision")
  1362.  
  1363. Syntax:@q< SET FILE COLLISION @i(action)>
  1364.  
  1365. Specifies the action to take when an
  1366. incoming file has the same name as an existing one.  Two of the options
  1367. involve choosing an alternative, unique name similar to the one in
  1368. conflict, but the details of choosing are system-specific.  Typically,
  1369. the method involves adding digits to the existing name.
  1370. @Index(File renaming)@Index(Renaming files)
  1371. @seealso(primary="Renaming files",other="File renaming")
  1372.  
  1373. @Begin(Description,leftmargin +13,indent -13,spread 0.5)
  1374. APPEND@\The new file is appended to the old one.  This option has the
  1375. the same effect as the old subcommand SET APPEND ON.
  1376. @Index(Appending)
  1377.  
  1378. BACKUP@\The existing file is renamed, and the new file is given the
  1379. desired name as if no conflict had occurred.
  1380.  
  1381. @Index(Discarding files)
  1382. @seealso(primary="Discarding files",other="DELETE")
  1383. DISCARD@\The incoming file is rejected by returning a "cancel file"
  1384. indication on any Data packets.
  1385.  
  1386. OVERWRITE@\The existing file is overwritten with
  1387. the incoming file.
  1388. @Index(Initialization files)
  1389. This is the default for the CMS, TSO, ROSCOE, and MUSIC
  1390. variants.  Changing this default is a good candidate for INIT
  1391. files.
  1392. @Index(CMS)@Index(TSO)@Index(ROSCOE)@Index(MUSIC)
  1393. When COLLISION is set to OVERWRITE, the attributes of the new file are
  1394. determined by the current setting of FILE OVERWRITE (@i<q.v.>).
  1395.  
  1396. @Index(RENAME)
  1397. RENAME@\The incoming file is renamed so
  1398. as not to destroy (overwrite) the pre-@|existing one, and the new
  1399. name is returned to the sending Kermit for information purposes.  This
  1400. has the same effect as the old subcommand
  1401. SET WARNING ON.
  1402. @Index(Warning)
  1403. This is the default for the CICS variant.
  1404. @Index(CICS)
  1405. @End(Description)
  1406.  
  1407. @Subheading(SET FILE LONGLINE)
  1408.  
  1409. Syntax:@q< SET FILE LONGLINE FOLD @i(or) TRUNCATE @i(or) HALT>
  1410. @Index(Truncation)@Index(Folding)
  1411.  
  1412. This specifies the action to take when a received line is longer than
  1413. the current maximum record length.  That length is determined by the
  1414. context in a system-specific way.  Refer to the description of the
  1415. RECEIVE subcommand in the appropriate chapter for details.
  1416.  
  1417. @Begin(Description,leftmargin +11,indent -11,spread 0.5)
  1418. FOLD@\Specifies that long lines
  1419. are to be split into two or more records as needed, all
  1420. but the last being of the maximum length.  No null records are
  1421. created when the received line is an exact multiple of the record
  1422. length.  BINARY files are, by definition, always considered as a single
  1423. line and, therefore, are @i(always) folded, regardless of the setting of
  1424. this parameter.
  1425. @Index(Binary files)
  1426. V-BINARY and D-BINARY
  1427. files, on the other hand, are
  1428. reconstructed by folding at points determined by the context within
  1429. the received file, and cannot be folded further to fit the current
  1430. maximum length.  Any such records that are too long will be truncated.
  1431.  
  1432. TRUNCATE@\Specifies that long lines
  1433. are to be truncated at the maximum length.
  1434. (Default.)
  1435. Kermit-370 takes note of the number of such truncations performed on
  1436. a file and reports it in the STATUS message and also treats the fact
  1437. of truncation as an error when the file transfer is complete.  The file
  1438. will have been transferred, but obviously not quite intact.
  1439. However, this option can be useful for some tasks, such as stripping
  1440. sequence numbers from card images.  The process is similar to that
  1441. provided by the SET MARGIN RIGHT subcommand for sending files.
  1442.  
  1443. HALT@\Specifies that a file transfer is to halt immediately if a
  1444. received line is too long.  Kermit-370
  1445. then issues an error packet and stops the transfer.
  1446. @End(Description)
  1447.  
  1448. @Subheading(SET FILE OVERWRITE)
  1449.  
  1450. Syntax:@q< SET FILE OVERWRITE DEFAULT @i(or) PRESERVE>
  1451. @Index(Overwriting files)
  1452. @seealso(primary="Overwriting files",other="Filename collision")
  1453. @Begin(Description,leftmargin +11,indent -11,spread 0.5)
  1454. DEFAULT@\Specifies that the current file attribute settings are to be
  1455. used for the new file.  The result is roughly the same as if
  1456. the old file, if any, were completely erased before the new file is
  1457. received.  (Default.)
  1458.  
  1459. PRESERVE@\Specifies that the attributes of the file being
  1460. overwritten are to be retained and used for the new file.  The result
  1461. is roughly the same as if the old files contents were deleted, and the
  1462. new file were appended to the empty stub.
  1463. @End(Description)
  1464.  
  1465. @Subheading(SET FILE TYPE)
  1466. @Index(Binary files)@Index(CRLF)
  1467.  
  1468. Syntax:@q< SET FILE TYPE @i(type)>
  1469.  
  1470. Specifies the type of data comprising files to be sent or received.
  1471. This setting may be temporarily superseded by the Attribute packets
  1472. for a file being received.
  1473.  
  1474. @Begin(Description,leftmargin +11,indent -11,spread 0.5)
  1475. TEXT@\Specifies ordinary text.  ASCII-to-EBCDIC
  1476. or EBCDIC-to-ASCII translation is performed on the data.  Trailing
  1477. blanks are removed, and CRLF's
  1478. are appended to outgoing records. CRLF's are used, in turn, to
  1479. determine the end of incoming records, which are padded with blanks
  1480. if necessary to fill buffers.
  1481. @Indexsecondary(primary="Blanks",secondary="preserving trailing")
  1482. @Indexsecondary(primary="Blanks",secondary="stripping")
  1483. (Default.)  Note: trailing blanks are removed from outgoing,
  1484. varying-length
  1485. records only if they consist of a single blank each, or if there is a
  1486. right margin specified (@i<q.v.>).  Further note: a given file is
  1487. intrinsically
  1488. categorized as fixed-length or varying-length
  1489. (or undefined-length) by the file system and
  1490. cannot be changed simply by setting the FILE RECFM parameter in Kermit.
  1491. Conversion between formats is a system-specific function; see the
  1492. system documentation or consult your local support staff for details
  1493. on conversion techniques.
  1494.  
  1495. @Index(LRECL)
  1496. BINARY@\Specifies bit-stream data.  No translation is performed,
  1497. no CRLF's are added to outgoing records, and blanks are neither added
  1498. nor removed.  Incoming bytes are added successively to
  1499. the current record buffer, which is written out when the current
  1500. LRECL is reached.  Padding, if necessary, is done with nulls.
  1501.  
  1502. V-BINARY@\Specifies varying-length-record binary data.  This type is
  1503. like BINARY, except that a
  1504. two-byte binary prefix is added to each outgoing record
  1505. giving the number of data bytes, and incoming records are set off by
  1506. (and stripped of) their prefixes on receipt.
  1507.  
  1508. D-BINARY@\Is like V-BINARY except that the length prefixes are five-byte
  1509. ASCII-encoded decimal (right-justified with leading zeroes).
  1510. @End(Description)
  1511.  
  1512. @Subheading(SET FOREIGN)
  1513. @Index(Foreign)
  1514.  
  1515. Syntax:@q< SET FOREIGN PREFIX @i(string)>
  1516.  
  1517. This defines a prefix string to be added to the outgoing
  1518. @i(filespec) generated by the SEND subcommand.  For example, the string
  1519. might be set to @qq(B:) to specify output to the B disk drive on the
  1520. other Kermit's system.  The default is a null string.  There is also a
  1521. FOREIGN SUFFIX handled in the same manner.
  1522.  
  1523. @Subheading(SET HANDSHAKE)
  1524. @Index(Handshake)
  1525.  
  1526. Syntax:@q< SET HANDSHAKE @i(number)>
  1527.  
  1528. This defines the character, if any, that Kermit-370 should
  1529. send (or cause to be sent) immediately
  1530. before reading each packet.  The character is given as the decimal
  1531. of an ASCII control character, or as zero if no handshake is to be
  1532. sent.
  1533. The default is 17 (XON), and any value in the range
  1534. 0-31 is valid, but 13 (CR) should not be used because it is generally
  1535. the end-of-packet character.  When Kermit-370 is running through a
  1536. full-duplex connection (such as a @qq<SERIES1>), the traditional IBM
  1537. handshaking is not necessary, and HANDSHAKE should be set to 0
  1538. (as long as the other Kermit can be
  1539. instructed not to expect a handshake).
  1540. Note the distinction between @q(SET
  1541. HANDSHAKE) in Kermit-370 (where it defines a character to be sent) and
  1542. in many micro Kermits (where it defines a character to be expected).
  1543.  
  1544. @Subheading(SET INCOMPLETE)
  1545. @Index(Incomplete files)
  1546. @Index(Discarding files)
  1547.  
  1548. Syntax:@q< SET INCOMPLETE DISCARD @i(or) KEEP>
  1549.  
  1550. @Begin(Description,leftmargin +10,indent -10,spread 0.5)
  1551. DISCARD@\Specifies that incomplete files (that is, files partially
  1552. received in a transfer cancelled by the other Kermit)
  1553. are to be erased.  This is
  1554. the default.  Note that when FILE COLLISION is APPEND,
  1555. incomplete files are never
  1556. erased, lest pre-existing data be lost.
  1557.  
  1558. KEEP@\Specifies that incomplete files are to be kept.
  1559. @End(Description)
  1560.  
  1561. @Subheading(SET LINE)
  1562. @Index(Alternate lines)
  1563.  
  1564. Syntax:@q< SET LINE [@i(name)]>
  1565.  
  1566. This specifies an alternate communication line for file
  1567. transfers.  If the @i(name) is omitted, the default line (the user's
  1568. terminal) is used.  The format of @i(name) is, of course,
  1569. system-dependent, and some variants of Kermit-370 do not support any
  1570. alternate lines.  No variant currently allows Kermit-370 to CONNECT
  1571. over an alternate line.
  1572.  
  1573. @Subheading(SET MARGIN)
  1574. @Index(Margins)
  1575.  
  1576. Syntax:@q< SET MARGIN @i(side) @i(column)>
  1577.  
  1578. When Kermit-370 sends a text file, each line may be truncated on the
  1579. left or right (or both) at fixed column numbers.  Only the text from
  1580. the left margin to the right margin (inclusive) will be sent, and any
  1581. @Indexsecondary(primary="Blanks",secondary="trailing")
  1582. @Indexsecondary(primary="Blanks",secondary="stripping")
  1583. trailing blanks in the truncated lines will be stripped.  A value of
  1584. zero for either margin disables truncation on that side.
  1585.  
  1586. @Subheading(SET PROMPT)
  1587. @Index(Prompt)
  1588.  
  1589. Syntax:@q< SET PROMPT [@i(string)]>
  1590.  
  1591. This defines the character string that Kermit-370 displays
  1592. when asking for a subcommand.  The prompt may be any string of up to 20
  1593. characters.  The default is the name of the system-specific variant of
  1594. Kermit-370 followed by a ">" sign, @i<e.g.>, @q(Kermit-CMS>).
  1595. If the @i(string) is omitted, normal system prompting will occur.
  1596.  
  1597. @Subheading(SET RETRY)
  1598.  
  1599. Syntax:@q< SET RETRY  INITIAL @i(or) PACKETS  @i(number)>
  1600.  
  1601. Kermit-370 resends its last packet after receiving a NAK or bad packet,
  1602. but it eventually gives up after repeated failures on the same
  1603. packet.  The limit on retries
  1604. can be set separately for the initial
  1605. packet exchange (Send-Init or server-mode command) and for ordinary
  1606. packets.  The default for INITIAL
  1607. is 16 and for PACKETS, 5.  Either limit can be set to any positive
  1608. value.
  1609.  
  1610. @Subheading(SET SERVER-TIMEOUT)
  1611. @Index(Timeout)
  1612.  
  1613. Syntax:@q< SET SERVER-TIMEOUT @i(time)>
  1614.  
  1615. This defines the @i(time) in seconds that Kermit-370 in server mode
  1616. should wait for a command before sending a NAK packet.  The default is
  1617. 120.  A value of 0 means that Kermit should wait indefinitely, not
  1618. only in the server loop, but in all transfers, regardless of the
  1619. timeout value specified by the other Kermit.  Some variants are unable
  1620. to time out in any case.  Also, timeouts are not implemented for any of
  1621. the full-screen terminal controllers.
  1622.  
  1623. @Subheading<SET SPEED>
  1624. @Index(Optimum packet size)
  1625.  
  1626. Syntax:@q< SET SPEED @i(number)>
  1627.  
  1628. This determines the communication line speed assumed by Kermit-370
  1629. in calculating the optimum packet size.  If the value is zero, such
  1630. calculations are suppressed.  This option is purely informative and
  1631. has no effect on actual line speed.
  1632. (Default 1200.)
  1633.  
  1634. @Subheading<SET SYSCMD>
  1635. @Index(Host commands)
  1636.  
  1637. Syntax:@q< SET SYSCMD ON @i(or) OFF>
  1638.  
  1639. @Begin(Description,leftmargin +8,indent -8,spread 0.5)
  1640. ON@\If the user enters a command string which is not a valid
  1641. Kermit subcommand, Kermit-370 will pass the string along to the host
  1642. operating system for execution.  If the string is rejected by the system
  1643. as well, Kermit will report it as an invalid @i(Kermit) subcommand.
  1644. Otherwise, Kermit will assume the string was intended as a host command
  1645. and will simply report the completion code if non-zero.
  1646.  
  1647. OFF@\Invalid Kermit subcommands are simply rejected as such.  System
  1648. commands may be executed, of course, but only by specifying the
  1649. generic prefix @qq(HOST) or the appropriate system-specific prefix,
  1650. such as CMS or TSO.
  1651. @Index(Command prefix)
  1652. (Default.)
  1653. @End(Description)
  1654.  
  1655. @Subheading<SET TABS-EXPAND>
  1656.  
  1657. Syntax:@q< SET TABS-EXPAND ON [@i(list)] @i(or) OFF>
  1658. @Index(Tabs)
  1659. @Begin(Description,leftmargin +8,indent -8,spread 0.5)
  1660. ON@\Tab characters in incoming TEXT files are replaced by one or more
  1661. blanks to bring the record size up to the next higher multiple of eight
  1662. for each tab.  If tab settings other than columns 1, 9, 17, @i<etc.> are
  1663. desired, they may be specified explicitly in a list following the
  1664. keyword @qq(ON).  Items in the list may be separated by spaces or
  1665. commas and must be in strictly increasing order.
  1666.  
  1667. OFF@\Incoming tabs are retained.
  1668. (Default.)
  1669. @End(Description)
  1670.  
  1671. @Subheading<SET TAKE ECHO>
  1672. @Index(Command echoing)
  1673. @seealso(primary="Echo",other="Command echoing")
  1674.  
  1675. Syntax:@q< SET TAKE ECHO ON @i(or) OFF>
  1676.  
  1677. @Begin(Description,leftmargin +8,indent -8,spread 0.5)
  1678. ON@\Subcommands are echoed to the terminal as they are executed from
  1679. a TAKE file.
  1680.  
  1681. OFF@\Subcommands from a TAKE file are executed "silently."
  1682. (Default.)
  1683. @End(Description)
  1684.  
  1685. @Subheading<SET TAKE ERROR-ACTION>
  1686.  
  1687. Syntax:@q< SET TAKE ERROR-ACTION CONTINUE @i(or) HALT>
  1688.  
  1689. @Begin(Description,leftmargin +11,indent -11,spread 0.5)
  1690. CONTINUE@\Execution continues in a TAKE file regardless of illegal
  1691. commands, except in server mode.  (This is the default.)
  1692.  
  1693. HALT@\A command error in a TAKE file causes immediate exit to Kermit
  1694. subcommand level.
  1695. @End(Description)
  1696.  
  1697. @Subheading<SET TEST>
  1698. @Index(TEST)
  1699.  
  1700. Syntax:@q< SET TEST ON @i(or) OFF>
  1701.  
  1702. @Begin(Description,leftmargin +8,indent -8,spread 0.5)
  1703. ON@\Allow setting the START-OF-PACKET and other special characters
  1704. to any value, and suppress type 1
  1705. checksum testing on received packets.
  1706.  
  1707. OFF@\Normal operation.
  1708. (Default.)
  1709. @End(Description)
  1710.  
  1711. @Subheading<SET TRANSFER CHARACTER-SET>
  1712. @Index(Character sets)
  1713.  
  1714. Syntax:@q< SET TRANSFER CHARACTER-SET @i(name)>
  1715.  
  1716. @Index<Kanji>@Index<Greek>@Index<Cyrillic>@Index<Hebrew>@Index<Katakana>
  1717. Specifies the name of the character set used in sending or receiving
  1718. files.  This setting may be superseded by an Attribute packet of an
  1719. incoming file.  Currently, the available names are ASCII (the
  1720. default), CYRILLIC, GREEK, HEBREW, JAPAN-EUC, KATAKANA, LATIN1,
  1721. LATIN2, LATIN3, THAI, and TRANSPARENT.  There are also special aliases
  1722. L1, L2, and L3 for the LATINx names.  All but JAPAN-EUC, TRANSPARENT,
  1723. and ASCII represent 8-bit codes composed of a pair of 94- or
  1724. 96-character sets from the ISO registry combined with normal
  1725. definitions for the so-called C0 and C1 characters.  JAPAN-EUC is a
  1726. DBCS for encoding Kanji characters, plus Roman, Greek, and Cyrillic.
  1727. ASCII is the traditional character set supported by Kermit,
  1728. but one of the newer, 8-bit sets would be preferable for most users.
  1729. This option is, therefore, a good candidate for
  1730. @Index(Initialization files)
  1731. inclusion in the system INIT file.
  1732. See Table @ref<-ikchars> for the allowed combinations of transfer and
  1733. file character sets.
  1734. Explicitly setting this option has a side effect equivalent to issuing
  1735. SET ATTRIBUTE ENCODING ON (@i<q.v.>).  There is one exception, namely,
  1736. TRANSPARENT, which sets ENCODING OFF and replaces both translation
  1737. tables with null operations, regardless of the current nominal file
  1738. character set.
  1739.  
  1740. @Index(Translation tables)
  1741. The biggest drawback of the built-in tables
  1742. for the various character sets is that neither the ISO registry
  1743. nor IBM defines any mapping between the C1 characters (hex 80-9F in
  1744. ISO arrangements) and the characters of EBCDIC code pages.  Thus, the
  1745. mappings in Kermit-370 tables are somewhat arbitrary, and future
  1746. pronouncements may suddenly invalidate some or all of those 32 mappings.
  1747.  
  1748. @Subheading<SET TRANSFER LOCKING-SHIFT>
  1749. @Index(Character sets)
  1750.  
  1751. Syntax:@q< SET TRANSFER LOCKING-SHIFT ON @i(or) OFF @i(or) FORCED>
  1752.  
  1753. @Begin(Description,leftmargin +8,indent -8,spread 0.5)
  1754. ON@\The Kermit locking-shift protocol is to be used in transfers to or
  1755. from cooperating partners, provided that 8th-bit quoting is enabled.
  1756.  
  1757. OFF@\The Kermit locking-shift protocol is not to be used.
  1758.  
  1759. FORCED@\The Kermit locking-shift protocol is to be used, regardless of the
  1760. cooperation of the other Kermit.  The encoding uses only the locking shifts,
  1761. to the exclusion of 8th-bit quoting.
  1762.  
  1763. @End(Description)
  1764.  
  1765. @Subheading<SET TTABLE>
  1766. @Index(Translation)
  1767.  
  1768. Syntax:@q< SET TTABLE ON @i(or) OFF @i(or) KP>
  1769.  
  1770. @Begin(Description,leftmargin +8,indent -8,spread 0.5)
  1771. ON@\The translation that undoes the terminal controller's
  1772. ASCII/EBCDIC conversion comes from the TATOE and TETOA tables, rather
  1773. than the ATOE and ETOA tables (which are used only for translating
  1774. disk files).  This option has no effect when there is no translation
  1775. built into the controller, @i<i.e.>, with SERIES1,
  1776. GRAPHICS, and AEA connections.
  1777.  
  1778. OFF@\The ATOE and ETOA tables are used for all translations by
  1779. Kermit-370.  (Default.)
  1780.  
  1781. KP@\Same as ON, but also establishes values in the TATOE and TETOA
  1782. tables based on IBM's corporate standard ASCII/EBCDIC translation
  1783. (distinct from the internationally accepted @i<de facto> standard).
  1784. @End(Description)
  1785.  
  1786. @Subheading<SET 8-BIT-QUOTE>
  1787. @Index(Eighth-bit prefix)
  1788. @Indexentry(key="Quote",entry="Quote.  @i<See> Prefix")
  1789.  
  1790. Syntax:@q< SET 8-BIT-QUOTE @i(char) @i(or) ON @i(or) OFF>
  1791.  
  1792. This controls whether eighth-bit prefixing is done and can be
  1793. used to specify the character to be used.  This is
  1794. one of only two
  1795. Send-Init parameters that cannot be SET separately for SEND
  1796. and RECEIVE.
  1797. @Begin(Description,leftmargin +8,indent -8,spread 0.5)
  1798. char@\Eighth-bit prefixing will be done using @i(char), provided the
  1799. other Kermit agrees.  The default value is an ampersand.
  1800.  
  1801. ON@\Eighth-bit prefixing will be done, provided the other Kermit
  1802. explicitly requests it (and specifies the character).
  1803.  
  1804. OFF@\Eighth-bit prefixing will not be done.
  1805. @End(Description)
  1806.  
  1807. @Subheading(SET SEND/RECEIVE)
  1808.  
  1809. The following parameters can be set either as SEND or RECEIVE options.
  1810. As a rule, in each pair, one is the operational value, and the other
  1811. is used to change the default for Send-Init packets received from the
  1812. other Kermit and to set up parameter values as if the other Kermit
  1813. had specified them on the previous exchange.
  1814. When both values are described, the operational one will be first.
  1815. For all parameters besides QUOTE, the operational value is the RECEIVE.
  1816. After a transfer, the operational values will be unchanged, but the
  1817. others (as displayed by SHOW) will reflect the parameters specified
  1818. by the other Kermit.  The underlying defaults established by previous
  1819. SET subcommands will still be in effect.
  1820. In the syntax descriptions, @i(mode) is SEND or RECEIVE.
  1821.  
  1822. @Subheading(END-OF-LINE)
  1823.  
  1824. Syntax:@q< SET @i(mode) END-OF-LINE @i(number)>
  1825.  
  1826. RECEIVE should not be changed.
  1827.  
  1828. SEND may be needed to establish contact.
  1829. If the other system needs packets to be terminated
  1830. by anything other than carriage return, specify the
  1831. decimal value of the desired ASCII character.
  1832. @i(number) must be in the range 0-31 (decimal).  The default is 13
  1833. (CR).
  1834.  
  1835. @Subheading(PACKET-SIZE)
  1836. @Index(Packet size)
  1837.  
  1838. Syntax:@q< SET @i(mode) PACKET-SIZE @i(number)>
  1839.  
  1840. RECEIVE defines @i(number) as the maximum length for incoming
  1841. packets.  The valid range is 26-9024, but 94 is the limit for normal
  1842. short-packet protocol.  The default is 80.
  1843. @Index(Long packets)
  1844. Specifying a value greater than 94 is necessary and sufficient to
  1845. enable the long-packet protocol for transfers to Kermit-370
  1846. (provided the other Kermit is willing).  Kermit-370 will actually
  1847. accept long packets in any case, but the protocol requires that the
  1848. other Kermit not
  1849. send them unless Kermit-370 asks.
  1850. @Index(Initialization files)
  1851. Raising this value from the
  1852. default is a good candidate for inclusion in INIT
  1853. files.
  1854. In practice, the packet size may be limited by hardware and programming
  1855. considerations.  See the system-specific chapters for details.
  1856.  
  1857. SEND might be needed for sending files to a minimal Kermit that
  1858. neither specifies a buffer size in the Send-Init sequence nor can
  1859. accept the default (80).  It may also be used to specify the packet
  1860. size for a "raw" download via the XTYPE subcommand.
  1861. This parameter has no other function and is completely irrelevant to
  1862. long packets.  If the other Kermit asks for long
  1863. packets, Kermit-370 will always comply.
  1864.  
  1865. @Subheading(PAD-CHAR)
  1866.  
  1867. Syntax:@q< SET @i(mode) PAD-CHAR @i(number)>
  1868.  
  1869. RECEIVE defines @i(number) as the character to be used by the other
  1870. Kermit for padding
  1871. packets.  The character must be an ASCII control
  1872. character (in the range 0-31).  The default is 0 (NULL).
  1873. This option is seldom useful.
  1874.  
  1875. SEND may be needed to establish contact if the other Kermit
  1876. (or the transmission line) needs padded packets.
  1877.  
  1878. @Subheading(PADDING)
  1879.  
  1880. Syntax:@q< SET @i(mode) PADDING @i(number)>
  1881.  
  1882. RECEIVE defines the @i(number) of pad characters to be used for padding
  1883. packets from the other Kermit.  This number may be anywhere from 0 to
  1884. 94.  The default is 0.  This option is seldom useful.
  1885.  
  1886. SEND may be needed to establish contact if the other Kermit
  1887. (or the transmission line) needs padded packets.
  1888.  
  1889. @Subheading(PARITY)
  1890. @Index(Parity)
  1891.  
  1892. Syntax:@q< SET @i(mode) PARITY MARK @i(or) NONE>
  1893.  
  1894. RECEIVE specifies the parity expected in the
  1895. transparent-mode ASCII data received by the mainframe from a
  1896. full-screen device.  Such data will
  1897. typically have either all Mark parity (seven data bits with the eighth
  1898. bit set) or no parity (eight data bits).  This is typically not the
  1899. same as the parity used in communications between the protocol
  1900. convertor and the terminal.  Kermit-370 must know which
  1901. kind of parity to expect in order to calculate checksums properly.
  1902. Since Kermit-370 does not actually verify parity, the other possible
  1903. variants (ODD, EVEN, and SPACE) are lumped together with MARK parity
  1904. for the purpose of this subcommand, which merely chooses between 7-bit
  1905. and 8-bit data transfer.  The default is MARK.
  1906.  
  1907. SEND is also an operational value, specifying the parity to be used in
  1908. constructing outgoing data packets on full-screen
  1909. devices.  NONE is the default and is
  1910. generally preferable, in that it permits binary transfers without the
  1911. need for eighth-bit prefixing, but MARK may be required in some
  1912. configurations.
  1913. @Index(Eighth-bit prefix)
  1914.  
  1915. @Subheading(QUOTE)
  1916.  
  1917. Syntax:@q< SET @i(mode) QUOTE @i(char)>
  1918.  
  1919. SEND indicates a printable character for prefixing (quoting) control
  1920. characters and other prefix characters.
  1921. The only good reason to change this would be for sending a file
  1922. that contains many @qq(#) characters (the
  1923. normal control prefix) as data.  It must be a single character with
  1924. ASCII value 33-62 or 96-126 (decimal).
  1925.  
  1926. RECEIVE would be needed only for talking to a crippled Kermit that
  1927. uses a non-standard quoting character, but does not admit it.
  1928.  
  1929. @Subheading(START-OF-PACKET)
  1930.  
  1931. Syntax:@q< SET @i(mode) START-OF-PACKET @i(number)>
  1932.  
  1933. RECEIVE defines @i(number) as the character to be expected to mark the
  1934. start of packets from the other Kermit.  The character must be an
  1935. ASCII control
  1936. character (in the range 0-31).  The default is 1 (SOH).  This may
  1937. need to be changed to establish contact.
  1938.  
  1939. SEND may also need to be changed to establish contact.
  1940. It defines @i(number) as the character to be used to mark outgoing
  1941. packets.
  1942.  
  1943. @Subheading(TIMEOUT)
  1944. @Index(Timeout)
  1945.  
  1946. Syntax:@q< SET @i(mode) TIMEOUT @i(time)>
  1947.  
  1948. RECEIVE defines the @i(time) in seconds the other Kermit is to wait for
  1949. a response from Kermit-370 before resending a packet.  The default is 5.
  1950. A value of 0 means the other Kermit should wait indefinitely.
  1951.  
  1952. SEND may be needed to
  1953. define the @i(time) in seconds Kermit-370 is to wait for a
  1954. response from the other Kermit in the initial packet exchange, although
  1955. the default value 0 (indefinite wait) is probably satisfactory,
  1956. especially since Kermit-370 in many cases cannot time out anyway.
  1957. Specifying a non-zero value will prevent the other Kermit from ever
  1958. requesting infinite "patience" from Kermit-370.
  1959.  
  1960. @Heading(The SHOW Subcommand)
  1961. @Index(SHOW)
  1962.  
  1963. Syntax:@q< SHOW [@i(option)]>
  1964.  
  1965. The SHOW subcommand displays the values of all
  1966. parameters that can be changed with
  1967. the SET subcommand, except ATOE, ETOA, TATOE, and TETOA
  1968. (for those, see the TDUMP subcommand).  If specified,
  1969. @i(option) can be a particular parameter or the keyword @qq<ALL>
  1970. (the default).
  1971. Groups of parameters, such as SEND, can be displayed by requesting
  1972. the group name, or individual sub-parameters can be displayed
  1973. by specifying the complete name.  For example,
  1974. @example(SHOW RECEIVE EOL)
  1975. will display the decimal value of the packet terminator that Kermit-370
  1976. currently expects, @i<i.e.>, 13.  Similarly,
  1977. @example(SHOW FOREIGN)
  1978. will display the character strings currently in use for prefix and
  1979. suffix on each outgoing @i(filespec).  When @qq(ALL) is specified
  1980. or implied, all parameters other than the attribute switches are
  1981. displayed.
  1982. @Index(File attributes)
  1983.  
  1984. @Heading(The STATUS Subcommand)
  1985. @Index(STATUS)
  1986.  
  1987. Syntax:@q< STATUS>
  1988.  
  1989. This subcommand displays information about the previously executed
  1990. subcommand.
  1991. The response will include either the appropriate error message or
  1992. the message @qq<No errors>.
  1993. The initial status is @qq(No file transfers yet).
  1994. If the status reflects an error condition, the name of the last file
  1995. used (excluding TAKE files) will be displayed as well.  If
  1996. the error was detected by the other Kermit, the message will be
  1997. @qq(Micro aborted) followed by the text from the Error packet.
  1998. Conversely, if Kermit-370 detected the error, the text of the status
  1999. message will have constituted the error packet sent out.
  2000. In any case, if the last file transfer was cancelled (by virtue of an
  2001. attribute mismatch or manual intervention), the reason for
  2002. cancellation is displayed.  Also, if the error occurred in disk I/O,
  2003. any available explanatory information is displayed.
  2004. Normally, the error status is altered only when a transfer-initiating
  2005. subcommand (SEND or RECEIVE) is executed, but
  2006. there are several exceptions.  If an invalid subcommand is entered, the
  2007. status becomes @qq(Kermit command error), and the next subcommand
  2008. entered will reset the status.  Also, in server mode @i(every)
  2009. subcommand is received through a transfer from the other Kermit and
  2010. may affect the status (except the STATUS subcommand itself, of course).
  2011.  
  2012. Other information is also included.  When Kermit-370
  2013. has been forced to truncate one or more records in the last
  2014. RECEIVE operation (because of the current maximum record length), the
  2015. number of records truncated is reported.
  2016. The status display also includes throughput statistics for the last
  2017. transfer: number of files sent, duration, number of packets, number of
  2018. retries, and averages of bytes/packet and
  2019. bytes/second.  These last two quantities are calculated separately
  2020. for bytes sent and received on the communication line
  2021. (including padding, if
  2022. any), and the last quantity is also calculated on the basis of the
  2023. number of bytes read from or written to disk.
  2024. Further, if retries were
  2025. necessary, Kermit-370 computes the optimum packet size assuming the
  2026. retries to have been due to sparse, Poisson-distributed bursts
  2027. of noise.  @Index(Long packets)This is the
  2028. same heuristic optimum that Kermit-370 computes and uses as
  2029. an alternative packet-size limit when sending long packets.  If TEST is
  2030. set on, Kermit also reports the maximum size attained by its storage
  2031. stack since execution began.
  2032.  
  2033. @Heading(The STOP Subcommand)
  2034. @Index(STOP)
  2035.  
  2036. Syntax:@q< STOP>
  2037.  
  2038. This is not a subcommand in the usual sense.  Instead, it is a command
  2039. string that can be entered on the communication line
  2040. while Kermit-370 is in protocol mode and will
  2041. cause protocol mode to cease immediately.  This may be useful if the
  2042. other Kermit has crashed.  The word "stop" may be entered in either
  2043. upper or lower case, but it must be the only character
  2044. string in the "packet" in question.
  2045.  
  2046. @Heading<The TAKE Subcommand>
  2047. @Index(TAKE)@Index(Command echoing)
  2048.  
  2049. Syntax:@q< TAKE @i(filespec)>
  2050.  
  2051. Execute Kermit subcommands from the specified file, usually called a
  2052. TAKE file.  The TAKE file may in turn include TAKE
  2053. subcommands, and the
  2054. nesting may continue to a depth of ten.  If a TAKE file includes the
  2055. subcommand SERVER, however, the nesting count is saved and
  2056. starts over again in
  2057. server mode in case the client Kermit should transmit a REMOTE KERMIT
  2058. TAKE command.  The user has the option of seeing
  2059. the subcommands echoed from the TAKE file as they are executed and also
  2060. the option of automatically exiting from a TAKE file on error.  See
  2061. the subcommand SET TAKE for details.
  2062.  
  2063. @Heading(The TDUMP Subcommand)
  2064. @Index(TDUMP)
  2065.  
  2066. Syntax:@q< TDUMP @i(table-name) @i(or) NAMES>
  2067.  
  2068. This
  2069. displays the contents of @i(table-name).  The same table can be modified
  2070. using the SET subcommand.  The ATOE, ETOA, TATOE, and TETOA
  2071. tables can presently be displayed and changed.  The NAMES table is the
  2072. @Index(Transaction log)
  2073. transaction log for the last transfer, consisting of the
  2074. @i<filespec> of each file sent or received, along with the size (in
  2075. Kbytes) and any error messages.
  2076.  
  2077. @Heading(The TYPE and XTYPE Subcommands)
  2078.  
  2079. Syntax:@q< [X]TYPE @i(filespec)>
  2080.  
  2081. These subcommands display the named file.
  2082. TYPE is effectively a synonym for (and allows the same options as) the
  2083. host system command for displaying files at the terminal, but XTYPE
  2084. performs a raw file transfer on the current communication line
  2085. @Index(Raw transmission)
  2086. (which need not be the terminal) according to the current CONTROLLER
  2087. setting.  Thus, XTYPE
  2088. uses transparent mode if CONTROLLER is
  2089. @Index(Transparent mode)
  2090. SERIES1, GRAPHICS, or AEA.  Also, it sends the data in bursts
  2091. no larger than the current SEND PACKET-SIZE.  Since XTYPE is basically
  2092. a modified SEND, the options allowed on the @i<filespec> for SEND are
  2093. also allowed for XTYPE.
  2094.  
  2095. @Section<Before Connecting to the Mainframe>
  2096.  
  2097. @Index(TTY)@Index(LOCAL-ECHO)@Index(Flow control)@Index(Handshake)
  2098. Several options must be set in the micro Kermit before
  2099. connecting to an IBM 370 system as a line-mode device.
  2100. You should set LOCAL-ECHO to ON (to indicate
  2101. half-duplex).  This is the norm but not true in absolutely
  2102. every case; if each
  2103. character appears twice on your terminal screen,
  2104. set LOCAL-ECHO to OFF.
  2105. FLOW-CONTROL should be set to NONE, and on some systems
  2106. HANDSHAKE should be set to XON.
  2107. The parity should be set according to the system's specifications.  On
  2108. some micro Kermits, all of the above is done in one step
  2109. using the DO IBM macro (or SET IBM ON).  Set the baud rate to
  2110. correspond to the line speed.
  2111.  
  2112. @Index(Full screen)@Index(PARITY)
  2113. Connecting through a
  2114. full-screen device also
  2115. requires that certain options be set
  2116. in the micro Kermit.  You should set LOCAL-ECHO to
  2117. OFF (to indicate full-duplex).  FLOW-CONTROL should be set to XON/XOFF,
  2118. and HANDSHAKE should be set to OFF.  For many systems,
  2119. the PARITY should be set to EVEN.  Set the baud rate to correspond to
  2120. the line speed.
  2121.  
  2122. One exception to these rules is the case where
  2123. the micro Kermit is attempting automated file transfer, @i<e.g.>,
  2124. downloading several separate files from Kermit-370 running in server
  2125. mode.  In fact, under those circumstances, handshaking is necessary
  2126. even with @qq(SERIES1) connections, and the two Kermits must be
  2127. instructed to adopt a common handshake character
  2128. (@i<e.g.>, by SET HANDSHAKE
  2129. 10 to Kermit-370 and SET HANDSHAKE LF to the micro).
  2130.  
  2131. @Index(Timeout)
  2132. In any case, you should make sure that either the micro Kermit or
  2133. Kermit-370 will provide timeouts during file transfers (if not
  2134. both).  Some variants of Kermit-370 (notably CMS) cannot provide
  2135. timeouts, and you may need to set the TIMER to ON in the micro.
  2136.  
  2137. When you are connecting through a protocol convertor,
  2138. it is useful to know the key sequence that causes the screen image to
  2139. be repainted
  2140. @Index(Screen refresh)
  2141. from the controller's memory.  In many cases, it is CTRL-V,
  2142. although CTRL-G and CTRL-C are also sometimes used.  In general, this
  2143. sequence should be typed whenever reconnecting to Kermit-370 after being
  2144. in Kermit protocol mode (and sometimes after merely escaping to the
  2145. local Kermit), since the local Kermit may have modified the screen.
  2146.  
  2147. @Section<Trouble-shooting Protocol Converters>
  2148.  
  2149. Many, but not all, protocol
  2150. converters have transparent modes that permit Kermit file transfers.  The
  2151. welter of competing and often incompatible communications devices would cause
  2152. a major headache, except for three circumstances.
  2153. First, Kermit-370 has routines for automatically detecting which kind of
  2154. front end is controlling the current session; second, the Kermit installer is
  2155. encouraged to tailor Kermit to force the correct choice of @q<CONTROLLER>
  2156. whenever those routines don't work properly; and, third, Kermit offers a
  2157. last-resort mode of operation that will work with almost any protocol
  2158. converter.  Because of the limitations in the catch-all mode (known as
  2159. @q<FULLSCREEN> mode), it is still best to take advantage of the transparency,
  2160. if any, in the protocol converter, and the automatic detection routines still
  2161. play an important role.  It will be instructive to outline what those
  2162. routines actually do and how they can go wrong.
  2163.  
  2164. @subheading(Recognizing a Series/1)
  2165.  
  2166. Although protocol converters are advertised as simulating the behavior of IBM
  2167. 3270-type terminals, there generally are differences which could be used to
  2168. distinguish each type of device from the others and from real 3270-type
  2169. terminals.  However, all that really matters to Kermit-370 is whether there
  2170. is a transparent mode available such that file transfers can be carried out.
  2171. To date, only three fundamentally different transparent modes have been
  2172. reported to Columbia, and it seems likely that no others have been (or,
  2173. perhaps, ever will be) implemented.  All are supported by Kermit.
  2174.  
  2175. Kermit-370 recognizes these front ends automatically by making two simple
  2176. tests.  The first takes advantage of one of the advanced features first
  2177. implemented in the Yale ASCII system and subsequently copied in many of the
  2178. devices that adopted the same transparent mode.  This feature is a special
  2179. 3270 data-stream order which requests a status report from the protocol
  2180. converter.  Kermit sends this order and then reads the "3270 screen".
  2181. If Kermit sees a valid status report, it sets @q<CONTROLLER> to @q<SERIES1>
  2182. and stops testing.
  2183.  
  2184. @subheading(Two catches)
  2185.  
  2186. Obviously, the Yale status order is not implemented in most other kinds of
  2187. hardware.  Thus, the order would be rejected by a non-Yale-type controller,
  2188. and that could have undesirable side effects on the hardware.  However,
  2189. hardware is generally designed to be robust -- the real drawback lies in the
  2190. side effects on certain communications software (notably VTAM/TSO), which may
  2191. respond badly while trying to protect the robust hardware from illegal
  2192. orders.  If it proves impossible to make the external software behave
  2193. properly, the only recourse is to modify Kermit-370 to skip the first test
  2194. altogether and possibly to force the @q<CONTROLLER> setting; this
  2195. modification is described in the relevant "Beware" file in a note dated
  2196. 89/2/27.
  2197.  
  2198. Catch Two is that the status order is not implemented in all of the devices
  2199. that support Yale-ASCII-style transparent mode.  This means that some devices
  2200. "fall through the cracks" in this procedure.  A site where such devices are
  2201. used may find it expedient to modify Kermit (following the same "Beware"
  2202. pattern) to force the procedure to set @q<CONTROLLER> to @q<SERIES1>
  2203. (assuming there are no other protocol converters also in use that support one
  2204. of the other transparent modes).  A list of such devices can be found in a
  2205. footnote in the Kermit distribution file @q<ik0aaa.hlp>.
  2206.  
  2207. @subheading(Recognizing a 3174)
  2208.  
  2209. The second diagnostic test uses a hardware command (Read Partition Query)
  2210. that is defined by IBM, but is not implemented on all 3270-type equipment.
  2211. There is, thus, the same danger as in the first test, but the danger appears
  2212. to be slight.  Indeed, both CMS and TSO allow a user program to know in
  2213. advance whether a Query is permitted.  The Query response consists of one or
  2214. more structured fields, and the 3174 AEA ASCII Graphics system (the only
  2215. device with the @q<AEA> style of transparency) is easily identified by the
  2216. appearance and content of a particular type of field.  In fact, it is
  2217. possible to tell from the Query data whether the particular 3174 line is
  2218. allowed to use the ASCII Graphics transparency.  Therefore, this test has
  2219. three possible outcomes: Kermit may detect a transparency-enabled 3174 line
  2220. (and set @q<CONTROLLER> to @q<AEA>); it may detect an incapable 3174 line
  2221. (and set @q<CONTROLLER> to @q<NONE>); or it may detect "none of the above"
  2222. (and set @q<CONTROLLER> to @q<GRAPHICS>).  Thus, aside from the exceptions
  2223. already noted, @q<GRAPHICS> simply means that the front end either supports
  2224. SAS-style transparency or none at all.
  2225.  
  2226. @subheading(Fallback positions)
  2227.  
  2228. What should you do when the automatic detection fails?  Obviously, the first
  2229. thing is Be Prepared.  Often, the misbehavior of VTAM can be halted by
  2230. pressing ENTER or PA1, so you should be sure to know how to generate a PA1
  2231. when trying out Kermit on an unfamiliar type of protocol converter.  Also,
  2232. you should know what kind of transparency to expect for the front end and
  2233. verify that Kermit-370 has, in fact, set @q<CONTROLLER> appropriately.  This
  2234. means checking the list of devices in the Kermit distribution file
  2235. @q<ik0aaa.hlp>.  If your configuration is listed as @i(un)supported, you may
  2236. be wasting your time, but the list is not necessarily up-to-date.  If your
  2237. configuration is not listed at all, you have the opportunity to be a pioneer
  2238. and report your findings back to Columbia for inclusion in future editions of
  2239. the list.  There are a few rules of thumb for quickly deducing the controller
  2240. type by reading the manuals for the device; the manuals may not be specific
  2241. enough, but this is clearly the easiest way of determining whether Kermit can
  2242. support a given device and which controller type is applicable.  The rules
  2243. are as follows (in order of simplicity and likelihood):
  2244.  
  2245. @begin(enumerate,spread 0.5)
  2246.  
  2247. GRAPHICS or SERIES1 may be implied when the device has a transparent or
  2248. graphics mode described as compatible with that of a supported device listed in
  2249. @q<ik0aaa.hlp>.
  2250.  
  2251. SERIES1 is implied when the device runs the "Yale ASCII Communication
  2252. System" or something with a similar name.
  2253.  
  2254. GRAPHICS is implied if the manual mentions the SAS Institute in the context
  2255. of ASCII graphics.
  2256.  
  2257. GRAPHICS is implied when output transparent data may be preceded by a WCC
  2258. (Write Control Character) and 70 (hex).
  2259.  
  2260. SERIES1 is implied when transparent data must be preceded by a WCC and either
  2261. 115D7F110005 (write-read) or 115D7F110000 (write-only).
  2262.  
  2263. GRAPHICS or SERIES1 may be implied when some of the manufacturer's other
  2264. products are listed in @q<ik0aaa.hlp>, and all are shown as being of one
  2265. type.
  2266.  
  2267. If none of the above rules apply, but the manuals describe a transparent mode
  2268. in detail, the device may be a totally new type.  The distribution file
  2269. @q<ik0con.hlp> has hints on implementing Kermit support for the new type.
  2270.  
  2271. If nothing else works, you can probably use FULLSCREEN mode, as long
  2272. as the micro Kermit supports it.
  2273.  
  2274. @end(enumerate)
  2275.  
  2276. If Kermit tries to transfer a file with the wrong @q<CONTROLLER> value, there
  2277. is a distressing possibility for the session to lock or, at least, appear to
  2278. lock.  When and if this happens, be sure to connect back to the mainframe,
  2279. type @qq<STOP>, and press ENTER several times (perhaps as many as 15 times)
  2280. before taking any drastic steps like breaking the connection.  @qq<STOP> is a
  2281. special escape mechanism for getting out of Kermit protocol mode quickly.
  2282. Kermit-370 recognizes such a request in most situations where terminal I/O is
  2283. not entirely frozen.  Sometimes, apparent lock-ups are due to something as
  2284. simple as incorrect parity settings in the micro Kermit, so always check the
  2285. basic communication settings and, if necessary, experiment before trying a
  2286. different @q<CONTROLLER> type.  Also, to avoid unnecessary confusion, check
  2287. for the existence of a Kermit initialization file (possibly created by the
  2288. installer) which could be re-setting @q<CONTROLLER> after the automatic
  2289. procedure has finished.  Such a re-setting is a poor idea in an
  2290. initialization file, even a personal one, unless there is absolutely only one
  2291. kind of communications equipment on your system.
  2292.  
  2293. If file transfers do not work at first, it is best to do the following
  2294. before trying again:
  2295. @begin(enumerate)
  2296. Reduce the packet size to no more than 80 at both ends.
  2297.  
  2298. Enable 8th-bit quoting at both ends.
  2299.  
  2300. Set @q<SEND PARITY MARK> in Kermit-370.
  2301. @end(enumerate)
  2302.  
  2303. If those changes do not make transfers work, the next remedial action depends
  2304. on the symptoms of failure.
  2305.  
  2306. @begin(itemize)
  2307.  
  2308. No packets exchanged and session locked up after reconnecting: change packet
  2309. characters in both directions.
  2310.  
  2311. No packets exchanged, but no lockup: change packet characters or parity.
  2312.  
  2313. Always multiple retries of third or fourth packet: reduce receiving packet
  2314. size.
  2315.  
  2316. Multiple retries after random number of packets: check hardware and cables.
  2317.  
  2318. Multiple retries after file-dependent number of packets: check for equipment
  2319. that intercepts one or more printable characters or reduce the packet size.
  2320.  
  2321. @end(itemize)
  2322.  
  2323. When all else fails, you should be ready to reset @q<CONTROLLER> by hand and
  2324. try again.  The change most likely to be necessary is from @q<GRAPHICS> to
  2325. @q<SERIES1>.  However, it is conceivable that the installer has modified
  2326. Kermit-370 at your location to force the @q<CONTROLLER> setting from the
  2327. start, in which case, you might need to go the other way.  Normally, Kermit's
  2328. diagnostic procedure at start-up takes one or two seconds (because of
  2329. programmed delays), so you should be suspicious if the Kermit prompt appears
  2330. immediately after you start the program.  The only initial @q<CONTROLLER>
  2331. setting that you should @i<not> change by hand is @q<NONE>, which means that
  2332. Kermit-370 has recognized a 3174 AEA line that is not configured for file
  2333. transfer (or else the Kermit installer has a warped sense of humor).
  2334.  
  2335. If no amount of experimenting gets a transparent mode to work, it is time to
  2336. recheck the list of supported devices and the age of your equipment.  If
  2337. yours is very old, it may require new microcode or some other software or
  2338. hardware upgrade.  In any case, if your results (whether positive or
  2339. negative) are not already shown in @q<ik0aaa.hlp>, you should report them to
  2340. Columbia so that others may profit by your experience.
  2341.  
  2342. @Section<After Returning from Kermit-370>
  2343.  
  2344. When Kermit-370 receives a QUIT or EXIT subcommand or finishes the
  2345. subcommand or subcommands
  2346. specified in the original command string that invoked
  2347. Kermit, control is returned to the caller.  Before returning,
  2348. Kermit-370 closes any active TAKE files (the EXIT or QUIT subcommand may
  2349. be issued from a TAKE file).  On return, the completion code is set
  2350. from the current error status according to the codes in Table
  2351. @ref(-ikcodes).
  2352. @Index(Error codes)@Index(Completion codes)
  2353. @seealso(primary="Completion codes",other="Error codes")
  2354.  
  2355. @begin<table,leftmargin +0,use format>
  2356. @tabclear()@tabset(0.6in,1.4in)
  2357. @bar()
  2358. @blankspace(1)
  2359. @u(Code)@\@u<Symbol>@\@ux<Error Message>
  2360.  0@\NOE@\No errors
  2361.  1@\NFT@\No file transfers yet
  2362.  2@\TRC@\Transfer cancelled
  2363.  3@\USC@\Invalid server command
  2364.  4@\TIE@\Terminal I/O error
  2365.  5@\BPC@\Bad packet count or chksum
  2366.  6@\IPS@\Invalid packet syntax
  2367.  7@\IPT@\Invalid packet type
  2368.  8@\MIS@\Lost a packet
  2369.  9@\NAK@\Micro sent a NAK
  2370. 10@\ABO@\Micro aborted
  2371. 11@\FNE@\Invalid file name
  2372. 12@\FNF@\File not found
  2373. 13@\FUL@\Disk or file is full
  2374. 14@\DIE@\Disk I/O error
  2375. 15@\MOP@\Missing operand
  2376. 16@\SYS@\Illegal system command
  2377. 17@\KCE@\Kermit command error
  2378. 18@\TIM@\No packet received
  2379. 19@\RTR@\Records truncated
  2380. 20@\COM@\Bad communication line
  2381. 21@\PTY@\8th-bit quote not set
  2382. 22@\FTS@\File too short
  2383. 23@\SOH@\Missing start-of-packet
  2384. 24@\OPT@\Option error on filespec
  2385. 25@\DSP@\Unable to dispose of file
  2386. @caption<Error messages and codes for Kermit-370>
  2387. @tag<-ikcodes>
  2388. @blankspace(1)
  2389. @bar()
  2390. @end<table>
  2391.  
  2392. The error codes in Table
  2393. @ref<-ikcodes> bear no relationship to the severity of the associated
  2394. error conditions, aside from the assignment of code 0.  The underlying
  2395. rationale is that the only current generic system
  2396. for the treatment of completion
  2397. codes is to take a non-zero code as an indication of error.
  2398. Indeed, Kermit
  2399. returns a completion code of 0 when "error" condition 1 holds.
  2400.  
  2401. @Section<What's New>
  2402. Below is a list of the changes in Version @value(-ikvrsn) of
  2403. Kermit-370.
  2404.  
  2405. @begin(enumerate,spread 0.5)
  2406. Compatibility with the (aging) F-level assembler.
  2407.  
  2408. Support for LATIN2, LATIN3, TRANSPARENT,
  2409. CP870, CP905, and CP880, as well as the
  2410. aliases L1, L2, and L3.
  2411.  
  2412. Support for IBM 3174 ASCII Graphics mode.
  2413.  
  2414. Support for REMOTE PRINT, REMOTE MAIL, and REMOTE SUBMIT.
  2415.  
  2416. Improved error message for bad packet-size, new alias PACKET-LENGTH
  2417. for PACKET-SIZE.
  2418.  
  2419. Correct observance of FILE COLLISION for all files in a group.
  2420.  
  2421. Ignoring spurious flow-control "packets" from (for example) MS-Kermit.
  2422.  
  2423. Support for new locking-shift Kermit protocol.
  2424.  
  2425. Support for Japanese Kanji file transfer.
  2426.  
  2427. New FULLSCREEN controller type.
  2428.  
  2429. New HINTS subcommand.
  2430.  
  2431. More graceful recovery from terminal I/O errors and exceptions.
  2432.  
  2433. Support for SNA LU1 3770-type devices and 8-bit, no-parity devices.
  2434.  
  2435. Automatic conversion of EBCDIC printer carriage control into ASCII
  2436. control characters.
  2437.  
  2438. Support for STOP command on "dumb" 3270 terminals and PCI protocol converters.
  2439.  
  2440. New efficiency display in STATUS report, based on SPEED setting.
  2441.  
  2442. 8-bit XECHO output.
  2443.  
  2444. Control prefixing for C1 controls.
  2445.  
  2446. New VERSION subcommand.
  2447.  
  2448. Improved debugging facilities.
  2449. @end(enumerate)
  2450.  
  2451. @Section(What's Missing)
  2452.  
  2453. Work on Kermit-370 will continue.  Features that need to be
  2454. improved or added include:
  2455. @begin(itemize)
  2456. Implement file archiving.
  2457.  
  2458. Implement file transfer checkpointing.
  2459.  
  2460. Add SET REPEAT subcommand.
  2461.  
  2462. Improve Kermit-370 operation as a local Kermit.
  2463.  
  2464. Implement public server mode.
  2465.  
  2466. @Index(Discarding files)
  2467. Add new SET FILE LONGLINE DISCARD option to allow multi-file
  2468. transfer to proceed past a truncation problem.
  2469.  
  2470. System-specific upgrades; see the respective chapters for details.
  2471. @end(itemize)
  2472.  
  2473. Anyone interested in working on these or other improvements should first
  2474. get in touch with the Center for Computing Activities at Columbia
  2475. University to find out if someone else has already begun a similar
  2476. project (and, if so, who).
  2477.  
  2478. @Section<Further Reading>
  2479. Below is a list of references for some of the material in this chapter.
  2480.  
  2481. @begin(enumerate,spread 0.5)
  2482.  
  2483. @i<About Type: IBM's Technical Reference for 240-Pel Digitized Type>,
  2484. S544-3156-02 (1989).  This manual contains visual tables of many
  2485. EBCDIC code pages and a comprehensive list of character names and
  2486. acronyms.
  2487.  
  2488. @i<IBM System/370 Reference Summary>, GX20-1850-3 (1976).  This reference
  2489. card contains EBCDIC and ASCII character codes.
  2490.  
  2491. @i<IBM VS Fortran Application Programming: Language Reference>,
  2492. GC26-3986-1 (1982).  Appendix E contains a table of EBCDIC and
  2493. ASCII characters with an implied full 256-byte translation table.
  2494.  
  2495. @i<IBM 3174 Character Set Reference>,
  2496. GA27-3831-02 (1990).  Chapter 5 contains visual tables of many EBCDIC
  2497. code pages.
  2498.  
  2499. @i<Info-Kermit Digest> Vol. 11 #1 (1989).  This issue contains draft
  2500. specifications of some Kermit protocol extensions.
  2501.  
  2502. @i<ISO International Register of Coded Character Sets to be used with
  2503. Escape Sequences> (1989).  This (very large) document has complete
  2504. and unambiguous descriptions of standard coded character sets.  It
  2505. can be obtained from the ECMA.
  2506.  
  2507. @i<Kermit, A File Transfer Protocol> by Frank da Cruz; Digital Press
  2508. (1987).  This book contains a thorough description of the Kermit
  2509. protocol and services with copious examples.
  2510.  
  2511. Kermit distribution file ISOK5.TXT (1990).  This preliminary draft
  2512. describes the new transfer protocol, including the international
  2513. character-set support.
  2514.  
  2515. @i<Kermit News> Vol. 3 #1, p.5, "Dynamic Packet Size Control" (1988).
  2516. This article describes an algorithm for
  2517. optimizing Kermit throughput in the face of line noise.
  2518.  
  2519. @i<Kermit News> #4, p.16, "International Character Sets" (1990).
  2520. This article discusses the new transfer protocol.
  2521.  
  2522. @i<ASCII and EBCDIC Character Set and Code Issues in Systems
  2523. Applications Architecture>,
  2524. SHARE white paper by Edwin Hart (1989).  This document, available as
  2525. file SHARE REQUIRE from LISTSERV@@JHUVM, lays out general considerations
  2526. for character codes and translatability.
  2527.  
  2528. @end(enumerate)
  2529.